mysql Strict Mode Strict Mode

mysql Strict Mode Strict Mode

To find my.cnf under the MySQL installation directory (windows system is my.ini) file

STRICT_TRANS_TABLES added sql_mode in strict mode is enabled on, if not joined, said non-strict mode, after modifying it to restart mysql

This means, for example, opened a strict mode:
sql_mode = NO_ENGINE_SUBSTITUTION, STRICT_TRANS_TABLES

Description Strict Mode function
does not support the insertion of null values for not null fields
are not supported for self-growth field into the "Value
does not support text fields have default values

Guess you like

Origin www.cnblogs.com/newmiracle/p/11865468.html