Use this tag for questions involving SQL delimited identifiers (quoted identifiers.)
In SQL, a delimited identifier (also referred to as "quoted identifier") is an identifier (name) enclosed in double quotes.
Delimited identifiers are special in two aspects:
• They can contain characters normally not supported in SQL identifiers. (E.g. "!# odd column name"
.)
• They can be identical to a reserved word. (E.g. "YEAR"
.)
Two consecutive double quotation marks within a delimited identifier are interpreted as one double quotation mark. (E.g. "12"" vinyl"
.)
SQL is by default case insensitive. To make an identifier (name) case sensitive it needs to be quoted. "Some_Table"
, "SOME_TABLE"
and "some_table"
are different names because they are quoted. The names some_table
, SOME_TABLE
and Some_Table
are identical names because they are not quoted.
The SQL standard defines the double quote "
as the quoting character (single quotes: '
are for string literals.) Some DBMS products deviate from the standard and allow alternative quoting characters. Microsoft SQL Server uses square brackets: [Some_Table]
and MySQL uses backticks `Some_Table`
.