SQL Server/T-SQL/String Functions/QUOTENAME

Материал из SQL эксперт
Перейти к: навигация, поиск

QUOTENAME: turns a character string in to a valid SQL Server identifier

1> -- QUOTENAME: turns a character string in to a valid SQL Server identifier
2>
3> SELECT QUOTENAME("[bad] table name")
4> GO

--------------------------------------------------------------------------------
------------------------------------------------------------------------------
[[bad]] table name]

(1 rows affected)
1>