Disable ONLY_FULL_GROUP_BY

后端 未结 27 1374
既然无缘
既然无缘 2020-11-22 00:22

I accidentally enabled ONLY_FULL_GROUP_BY mode like this:

SET sql_mode = \'ONLY_FULL_GROUP_BY\';

How do I disable it?

27条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-22 01:18

    Im working with mysql and registered with root user, the solution that work for me is the following:

    mysql > SET SESSION sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));

提交回复
热议问题