设置 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
Think before you speak, read before you think.
设置 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
Leave a Reply