Disable ONLY_FULL_GROUP_BY

后端 未结 27 1314
既然无缘
既然无缘 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:05

    Give this a try:

    SET sql_mode = ''
    

    Community Note: As pointed out in the answers below, this actually clears all the SQL modes currently enabled. That may not necessarily be what you want.

提交回复
热议问题