©SQL :: Manager
HomeProgram InformationTechnical detailsFree downloadDonate for a cup of coffee
myway SQL Manager for MySQL and MariaDB, Download on Uptodown
MySQL, MariaDB Edit SQL mode - sql_mode

Edit SQL mode for server and program (MySQL / MariaDB - sql_mode)

SQL mode The SQL mode module a part of the host administration
MySQL and MariaDB SQL mode
Module for setting the SQL mode in MySQL and MariaDB databases, globally and at session level
The session level settings can also be set in the SQL editor.

Global View of the currently set SQL mode values ​​and selection for global setting on the SQL server.
Session View and selection of the saved SQL mode for the MyWAY SQL Manager.
value Possible values ​​for the sql_mode variable.
Description Description of the function.

Global settings:
Save changes globally: Set SQL mode globally for server and all clients.

Session Settings:
Save changes for sessions: Save and set the SQL mode for the MyWAY SQL Manager in the user account.
Delete session settings: Delete saved SQL mode settings in the MyWAY SQL Manager user account.

Options for session:
Apply only in SQL statements: The SQL mode is only set for SQL statements in the SQL editor at the database or server level.
Apply globally in the program: The SQL mode is set for all actions of the MyWAY SQL Manager.
Use for this session only: The SQL mode is only set for the current program session of the user.
The setting expires when the program is restarted.
Also save for future sessions: The SQL mode is also saved and set for future user program sessions.
Available values ​​for SQL mode in MySQL and MariaDB:
ALLOW_INVALID_DATESThe DATE data type can have any value in the range from 1 to 31 in the day component, even if it is not a valid date.
ANSI_QUOTESThe " character becomes the identifier quote instead of the ` character.
EMPTY_STRING_IS_NULLEmpty strings are treated as NULL for Oracle compatibility.
ERROR_FOR_DIVISION_BY_ZEROAn error is thrown when dividing a number by zero. Otherwise, NULL is returned.
EXTENDED_ALIASESAliases work similarly to aliases in Sybase SQL Anywhere. Aliases are resolved in the SELECT list and WHERE clause. Aliases can be used in the SELECT list before the alias is defined.
HIGH_NOT_PRECEDENCEThe precedence of the NOT operator is increased so that NOT A BETWEEN B AND C is interpreted as (NOT A) BETWEEN B AND C.
IGNORE_BAD_TABLE_OPTIONSIncorrect table options provided to the CREATE TABLE or ALTER TABLE statements result in warnings instead of errors.
IGNORE_SPACESpaces may be specified between function names and parentheses. In doing so, the names of built-in functions become reserved words.
NO_AUTO_CREATE_USERThe GRANT statement is prevented from automatically creating a user unless the statement also includes information such as a password or an authentication plugin.
NO_AUTO_VALUE_ON_ZEROThe value 0 is not interpreted in the same way as NULL for AUTO_INCREMENT columns, but is treated as an actual 0.
NO_BACKSLASH_ESCAPESThe use of the backslash character as an escape character within strings is not allowed. Instead, it's just a normal character.
NO_DIR_IN_CREATEThe DATA DIRECTORY and INDEX DIRECTORY table options are ignored in the CREATE TABLE and ALTER TABLE statements.
NO_ENGINE_SUBSTITUTIONA storage engine cannot be replaced with standard mode. If the specification is incorrect, an error is issued.
NO_FIELD_OPTIONSPrevents the SHOW CREATE TABLE statement from printing MariaDB specific column options.
NO_KEY_OPTIONSPrevents the SHOW CREATE TABLE statement from printing MariaDB-specific index options.
NO_TABLE_OPTIONSPrevents the SHOW CREATE TABLE statement from printing MariaDB specific table options.
NO_UNSIGNED_SUBTRACTIONSigned data types are used for subtraction results even if the operands contain unsigned data types.
NO_ZERO_DATE0000-00-00 is forbidden as a valid value for the DATE data type.
NO_ZERO_IN_DATEThe DATE data type for the year component is prevented from having a non-zero value if the date for the month or day components has zero values.
ONLY_FULL_GROUP_BYColumns can only be selected in SELECT ... GROUP BY statements if the column is in the GROUP BY clause or is in an aggregate function.
PAD_CHAR_TO_FULL_LENGTHColumns of data type CHAR are filled to the full length of the column when selected.
PIPES_AS_CONCATThe operator || functionally corresponds to the CONCAT() function and not to the OR operator.
REAL_AS_FLOATThe REAL data type becomes an alias for the FLOAT data type instead of the alias for the DOUBLE data type.
SIMULTANEOUS_ASSIGNMENTThe server evaluates all assignments in the SET clause of an UPDATE statement at once, rather than from left to right.
STRICT_ALL_TABLESStrict mode is enabled for tables that use transactional and non-transactional storage engines. Any statements that contain invalid or missing data generate errors instead of warnings.
STRICT_TRANS_TABLESEnables strict mode for tables using transactional storage engines. Any statements that contain invalid or missing data generate errors instead of warnings.
TIME_ROUND_FRACTIONALDer Server rundet Sekundenbruchteile, wenn der Wert in einen Datentyp ohne Sekundenbruchteile konvertiert wird.
ANSIAlias ​​for REAL_AS_FLOAT, PIPES_AS_CONCAT, ANSI_QUOTES, IGNORE_SPACE.
DB2Alias ​​for PIPES_AS_CONCAT, ANSI_QUOTES, IGNORE_SPACE, NO_KEY_OPTIONS, NO_TABLE_OPTIONS, NO_FIELD_OPTIONS.
MAXDBAlias ​​for PIPES_AS_CONCAT, ANSI_QUOTES, IGNORE_SPACE, NO_KEY_OPTIONS, NO_TABLE_OPTIONS, NO_FIELD_OPTIONS, NO_AUTO_CREATE_USER.
MSSQLAlias ​​for PIPES_AS_CONCAT, ANSI_QUOTES, IGNORE_SPACE, NO_KEY_OPTIONS, NO_TABLE_OPTIONS, NO_FIELD_OPTIONS.
MYSQL323Alias ​​for HIGH_NOT_PRECEDENCE.
MYSQL40Alias ​​for HIGH_NOT_PRECEDENCE.
ORACLEA subset of Oracle's PL/SQL stored procedure language is enabled. This also enables the following other modes: PIPES_AS_CONCAT, ANSI_QUOTES, IGNORE_SPACE, NO_KEY_OPTIONS, NO_TABLE_OPTIONS, NO_FIELD_OPTIONS, NO_AUTO_CREATE_USER, SIMULTANEOUS_ASSIGNMENT.
POSTGRESQLAlias ​​for PIPES_AS_CONCAT, ANSI_QUOTES, IGNORE_SPACE, NO_KEY_OPTIONS, NO_TABLE_OPTIONS, NO_FIELD_OPTIONS.
TRADITIONALAlias ​​for STRICT_TRANS_TABLES, STRICT_ALL_TABLES, NO_ZERO_IN_DATE, NO_ZERO_DATE, ERROR_FOR_DIVISION_BY_ZERO, NO_AUTO_CREATE_USER, NO_ENGINE_SUBSTITUTION.
TIME_TRUNCATE_FRACTIONALTIME and TIMESTAMP values ​​are rounded when inserted into a column of the same type if the fractional second has too many digits.
In MySQL and MariaDB the server variable sql_mode determines the SQL Mode that determines the syntax and behavior of SQL statements and SQL scripts executed on the server, including how strict the server is in interpreting SQL queries should be. This affects various applications such as data validation, error handling and query execution, where the sql_mode variable can be set at global or session level.
More information about SQL mode here: mysql.com and mariadb.com
Updated: 2023-09-14ImprintContactTerms & conditionsPrivacy & CookiesUpdatesSitemapFacebookLinkedinTwitterStatistics©2020-2024 Heino Cunze-Fischer