Home >Database >Mysql Tutorial >How Do Different Database Systems Handle Delimited Identifiers?
Database Name Quotes: Different Delimiters for Different Systems
In SQL, identifiers like table names and column names can use delimited identifiers to include characters that would otherwise be invalid or confusing. Different databases employ various characters for delimiting these identifiers.
While MySQL typically uses backquotes () for quoting table names, it also supports double-quotes (") when configured with SET SQL_MODE=ANSI_QUOTES`.
Microsoft SQL Server and Sybase, on the other hand, default to brackets ([]). However, double-quotes can be used with SET QUOTED_IDENTIFIER ON.
Some database systems, such as InterBase and Firebird, require modifying the SQL dialect to enable the use of delimited identifiers.
The standard SQL language, as well as most other database brands, consistently utilizes double-quotes for delimiting identifiers. This ensures that table names and other identifiers can include spaces, special characters, international characters, case-sensitive words, and SQL keywords without causing confusion or syntax errors.
The above is the detailed content of How Do Different Database Systems Handle Delimited Identifiers?. For more information, please follow other related articles on the PHP Chinese website!