SQL Modes
This page is part of MariaDB's Documentation.
The parent of this page is: Reference for MariaDB Enterprise Server 10.2
Topics on this page:
Overview
The supported SQL modes in MariaDB Enterprise Server:
SQL Mode | Description |
---|---|
This mode allows the DATE data type to have any value in the range 1-31 in the day component, even if it isn't a valid date | |
This mode makes the " character become the identifier quote character, instead of the ` character. This is more compatible with the ANSI standard, but it may break applications developed for MariaDB if they use the " character to quote string literals. | |
This mode causes an error to be thrown when a number is divided by zero. Otherwise, | |
This mode increases the precedence of the NOT operator, so that | |
This mode causes bad table options provided to the CREATE TABLE and ALTER TABLE statements to generate warnings instead of errors | |
This mode allows spaces to appear between function names and parenthesis. However, a side effect is that the names of built-in functions become reserved words. | |
This mode prohibits the GRANT statement from automatically creating a user, unless the statement also included authentication-related information, such as a password or an authentication plugin | |
This mode disables the default behavior that occurs when the value | |
This mode does not allow the backslash character () to be used to escape characters within strings. Instead, it is just a regular character. | |
This mode causes the | |
This mode does not allow a storage engine to be substituted with the default. Usually, if a storage engine is specified in a CREATE TABLE or ALTER TABLE statement and that storage engine doesn't exist, then a warning with the ER_ | |
This mode prevents the SHOW CREATE TABLE statement from printing MariaDB-specific column options | |
This mode prevents the SHOW CREATE TABLE statement from printing MariaDB-specific index options | |
This mode prevents the SHOW CREATE TABLE statement from printing MariaDB-specific table options | |
This mode forces subtraction results to use signed data types, even if the operands use unsigned data types | |
This mode prohibits '0000-00-00' as a valid value for the DATE data type | |
This mode prohibits the DATE data type from having a non-zero value for the year component when the date does have zero values for the month or day components. For example, '0000-00-000' would be allowed, but '2020-01-00', '2020-00-01', and '2020-00-00' would be prohibited. | |
This mode disallows columns to be selected in | |
This mode causes columns using the CHAR data type to be padded to the column's full length when the column is selected | |
This mode makes the || operator become functionally equivalent to the CONCAT() function, rather than functionally equivalent to the OR operator. This means that | |
This mode makes the REAL data type become an alias for the FLOAT data type, rather than an alias for the DOUBLE data type | |
This mode enables strict mode for tables that use transactional and non-transactional storage engines. In strict mode, any statements that involve invalid or missing data will generate errors instead of warnings. With non-transactional storage engines, statements cannot be rolled back, so if the error occurs after the first row, then the statement may only be partially completed. | |
This mode enables strict mode for tables that use transactional storage engines. In strict mode, any statements that involve invalid or missing data will generate errors instead of warnings, and the statement will be aborted and rolled back. |
A SQL mode alias sets one or more alternate mode flags instead of putting its own name into the SQL mode string.
The aliased SQL modes in MariaDB Enterprise Server 10.2:
SQL Mode | Description |
---|---|
This mode is an alias for REAL_ | |
This mode is an alias for PIPES_ | |
This mode is an alias for PIPES_ | |
This mode is an alias for PIPES_ | |
This mode is an alias for HIGH_ | |
This mode is an alias for HIGH_ | |
This mode enables a subset of Oracle's PL/SQL language for stored procedures. It also enables the following other modes: PIPES_ | |
This mode is an alias for PIPES_ | |
This mode is an alias for STRICT_ |