原文:数据库多表连接查询中使用group by分组语句,Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'XXX' which is not functionally dependent on columns in GROUP BY claus

需求描述: 要是用两表联合查询,并对查询的结果进行分组:sql如下: 这样的sql语句会报错结果如下: Expression of SELECT list is not in GROUP BY clause and contains nonaggregated column a.id which is not functionally dependent on columns in GROUP B ...

2019-10-23 10:06 0 727 推荐指数:

查看详情

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM