mysql遇见this is incompatible with sql_mode=only_full_group_by的问题

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/woshimeihuo/article/details/89333448

将only_full_goup_by替换为空

##当前session变量生效
SET sql_mode=(SELECT REPLACE(@@sql_mode,‘ONLY_FULL_GROUP_BY’,’’));

##全局变量生效
SET global sql_mode=(SELECT REPLACE(@@sql_mode,‘ONLY_FULL_GROUP_BY’,’’));

猜你喜欢

转载自blog.csdn.net/woshimeihuo/article/details/89333448