Error related to only_full_group_by when executing a query in MySql

前端 未结 18 2546
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-21 04:39

I have upgraded my system and have installed MySql 5.7.9 with php for a web application I am working on. I have a query that is dynamically created, and when run in older ve

18条回答
  •  时光说笑
    2020-11-21 04:54

    You can add a unique index to group_id; if you are sure that group_id is unique.

    It can solve your case without modifying the query.

    A late answer, but it has not been mentioned yet in the answers. Maybe it should complete the already comprehensive answers available. At least it did solve my case when I had to split a table with too many fields.

提交回复
热议问题