--sql-mode
This page is part of MariaDB's Documentation.
The parent of this page is: mariadbd & mysqld for MariaDB Enterprise Server
Topics on this page:
Overview
This is a command-line option for the mariadbd
& mysqld
commands (arg: Required).
In 11.4 ES, 10.6 ES, 10.5 ES:
Sets the sql mode. Any combination of: REAL_
AS_ FLOAT, PIPES_ AS_ CONCAT, ANSI_ QUOTES, IGNORE_ SPACE, IGNORE_ BAD_ TABLE_ OPTIONS, ONLY_ FULL_ GROUP_ BY, NO_ UNSIGNED_ SUBTRACTION, NO_ DIR_ IN_ CREATE, POSTGRESQL, ORACLE, MSSQL, DB2, MAXDB, NO_ KEY_ OPTIONS, NO_ TABLE_ OPTIONS, NO_ FIELD_ OPTIONS, MYSQL323, MYSQL40, ANSI, NO_ AUTO_ VALUE_ ON_ ZERO, NO_ BACKSLASH_ ESCAPES, STRICT_ TRANS_ TABLES, STRICT_ ALL_ TABLES, NO_ ZERO_ IN_ DATE, NO_ ZERO_ DATE, ALLOW_ INVALID_ DATES, ERROR_ FOR_ DIVISION_ BY_ ZERO, TRADITIONAL, NO_ AUTO_ CREATE_ USER, HIGH_ NOT_ PRECEDENCE, NO_ ENGINE_ SUBSTITUTION, PAD_ CHAR_ TO_ FULL_ LENGTH, EMPTY_ STRING_ IS_ NULL, SIMULTANEOUS_ ASSIGNMENT, TIME_ ROUND_ FRACTIONAL, EXTENDED_ ALIASES In 10.6 CS, 10.5 CS, 10.4 ES, 10.4 CS:
Sets the sql mode. Any combination of: REAL_
AS_ FLOAT, PIPES_ AS_ CONCAT, ANSI_ QUOTES, IGNORE_ SPACE, IGNORE_ BAD_ TABLE_ OPTIONS, ONLY_ FULL_ GROUP_ BY, NO_ UNSIGNED_ SUBTRACTION, NO_ DIR_ IN_ CREATE, POSTGRESQL, ORACLE, MSSQL, DB2, MAXDB, NO_ KEY_ OPTIONS, NO_ TABLE_ OPTIONS, NO_ FIELD_ OPTIONS, MYSQL323, MYSQL40, ANSI, NO_ AUTO_ VALUE_ ON_ ZERO, NO_ BACKSLASH_ ESCAPES, STRICT_ TRANS_ TABLES, STRICT_ ALL_ TABLES, NO_ ZERO_ IN_ DATE, NO_ ZERO_ DATE, ALLOW_ INVALID_ DATES, ERROR_ FOR_ DIVISION_ BY_ ZERO, TRADITIONAL, NO_ AUTO_ CREATE_ USER, HIGH_ NOT_ PRECEDENCE, NO_ ENGINE_ SUBSTITUTION, PAD_ CHAR_ TO_ FULL_ LENGTH, EMPTY_ STRING_ IS_ NULL, SIMULTANEOUS_ ASSIGNMENT, TIME_ ROUND_ FRACTIONAL In 10.3 ES, 10.3 CS:
Sets the sql mode. Any combination of: REAL_
AS_ FLOAT, PIPES_ AS_ CONCAT, ANSI_ QUOTES, IGNORE_ SPACE, IGNORE_ BAD_ TABLE_ OPTIONS, ONLY_ FULL_ GROUP_ BY, NO_ UNSIGNED_ SUBTRACTION, NO_ DIR_ IN_ CREATE, POSTGRESQL, ORACLE, MSSQL, DB2, MAXDB, NO_ KEY_ OPTIONS, NO_ TABLE_ OPTIONS, NO_ FIELD_ OPTIONS, MYSQL323, MYSQL40, ANSI, NO_ AUTO_ VALUE_ ON_ ZERO, NO_ BACKSLASH_ ESCAPES, STRICT_ TRANS_ TABLES, STRICT_ ALL_ TABLES, NO_ ZERO_ IN_ DATE, NO_ ZERO_ DATE, ALLOW_ INVALID_ DATES, ERROR_ FOR_ DIVISION_ BY_ ZERO, TRADITIONAL, NO_ AUTO_ CREATE_ USER, HIGH_ NOT_ PRECEDENCE, NO_ ENGINE_ SUBSTITUTION, PAD_ CHAR_ TO_ FULL_ LENGTH, EMPTY_ STRING_ IS_ NULL, SIMULTANEOUS_ ASSIGNMENT In 10.2 ES, 10.2 CS:
Sets the sql mode. Any combination of: REAL_
AS_ FLOAT, PIPES_ AS_ CONCAT, ANSI_ QUOTES, IGNORE_ SPACE, IGNORE_ BAD_ TABLE_ OPTIONS, ONLY_ FULL_ GROUP_ BY, NO_ UNSIGNED_ SUBTRACTION, NO_ DIR_ IN_ CREATE, POSTGRESQL, ORACLE, MSSQL, DB2, MAXDB, NO_ KEY_ OPTIONS, NO_ TABLE_ OPTIONS, NO_ FIELD_ OPTIONS, MYSQL323, MYSQL40, ANSI, NO_ AUTO_ VALUE_ ON_ ZERO, NO_ BACKSLASH_ ESCAPES, STRICT_ TRANS_ TABLES, STRICT_ ALL_ TABLES, NO_ ZERO_ IN_ DATE, NO_ ZERO_ DATE, ALLOW_ INVALID_ DATES, ERROR_ FOR_ DIVISION_ BY_ ZERO, TRADITIONAL, NO_ AUTO_ CREATE_ USER, HIGH_ NOT_ PRECEDENCE, NO_ ENGINE_ SUBSTITUTION, PAD_ CHAR_ TO_ FULL_ LENGTH
See also: mariadbd & mysqld for MariaDB Enterprise Server 11.4, in 10.6 ES, in 10.5 ES, in 10.4 ES, in 10.3 ES, in 10.2 ES, in 10.6 CS, in 10.5 CS, in 10.4 CS, in 10.3 CS, and in 10.2 CS
CHANGE HISTORY
Release Series | History |
---|---|
11.4 Enterprise |
|
10.6 Enterprise |
|
10.6 Community |
|
10.5 Enterprise |
|
10.5 Community |
|
10.4 Enterprise |
|
10.4 Community |
|
10.3 Enterprise |
|
10.3 Community |
|
10.2 Enterprise |
|
10.2 Community |
|