Column '###' is invalid in the select list because it is not contained in either an aggregate ......

拼搏现实的明天。 2023-05-29 13:09 63阅读 0赞

数据库报错:Column ‘temTable.customStatus’ is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause.

原因:group by 后面是要跟着的 select 中所有不是聚合函数的字段。

解决:把该字段放在group by 后面即可。

20191106140119687.jpg

发表评论

表情:
评论列表 (有 0 条评论,63人围观)

还没有评论,来说两句吧...

相关阅读