Renaming the columns and calculations in the result set page 2 |
||
SQL Standard allows to use delimited identifier, whereas delimiter is the double quote - ("). If an identifier contains special characters or is a reserved word, you must quote it whenever you refer to it. For example, the query returns expression value (character constant 'SELECT' in our case) in the column named SELECT, i.e. we use a keyword as a column name. Otherwise the compiler (SQL Server) does not correctly parse the following query and the error arises:Incorrect syntax near 'SELECT'. Apart from standard delimiter, nearly each DBMS adopts the own one. For example, the above query in The both delimiters - standard and own - can be used simultaneously, but the standard one not always is supported by default. The proper setting parameter in MSSQL can be changed with the statement:
|