一碗白开水*

导航

mysql 出现 only_full_group_by 问题

此办法临时解决,数据重启后失效

 

set @@GLOBAL.sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION';
set @@session.sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION';


select @@global.sql_mode;

posted on 2021-01-07 14:06  一碗白开水*  阅读(114)  评论(0编辑  收藏  举报