MySQL Error: SELECT list is not in GROUP BY clause

前端 未结 4 2101
有刺的猬
有刺的猬 2020-11-29 14:18

I have a problem with my query and mysql throws the following error:

#1055 - Expression #66 of SELECT list is not in GROUP BY clause and 
contai         


        
4条回答
  •  心在旅途
    2020-11-29 14:23

    Not sure why no one emphasizing using ANY_VALUE() inbuilt function for the s.status column.

    Check this out: https://dev.mysql.com/doc/refman/8.0/en/group-by-handling.html https://dev.mysql.com/doc/refman/8.0/en/miscellaneous-functions.html#function_any-value

提交回复
热议问题