Think before you speak, read before you think.

mysql sql_mode

by

in

设置 sql_mode

set global sql_mode="ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION";

查看 sql_mode

show variables like 'sql_mode';

OR

SELECT @@sql_mode

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *