All pages
Powered by GitBook
1 of 1

Loading...

SQL_MODE=MSSQL

SET SQL_MODE=MSSQL implies all the following flags:

Setting the system variable to MSSQL allows the server to understand a small subset of Microsoft SQL Server's language. For the moment MSSQL mode only has limited functionality, but we plan to add more later according to demand.

Supported Syntax in MSSQL Mode

Using [] for Quoting

One can use [] instead of "" or `` for quoting :

You can use '[' in identifiers. If you want to use ']' in identifiers you have to specify it twice.

See Also

SQL_MODE=ORACLE
SET SQL_MODE="MSSQL";
CREATE TABLE [t 1] ([a b] INT);
SHOW CREATE TABLE [t 1];
Table  Create Table
t 1    CREATE TABLE "t 1" (
  "a b" INT(11) DEFAULT NULL
)
sql_mode
PIPES_AS_CONCAT
ANSI_QUOTES
IGNORE_SPACE
NO_KEY_OPTIONS
NO_TABLE_OPTIONS
NO_FIELD_OPTIONS
sql_mode
identifiers

This page is licensed: CC BY-SA / Gnu FDL