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 A database management system (DBMS) by Microsoft Corporation. SQL(Structured Query Language) is a database computer language designed for the retrieval and management of data in relational database management systems (RDBMS), database schema creation and modification, and database object access control management.SQL Server can be written as 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:
|