sql --it is not contained in either an aggregate function or the GROUP BY clause.
2018-02-25 20:29
981 查看
关于group by的错误
表结构:
查询语句:
select * from POM_USER
group by Sex看见这个错误,凭感觉知道改 '*' 为 'Sex',这样就没有错了,不知道为什么,看到一篇文章,豁然开朗: 理解 group by
表结构:
查询语句:
select * from POM_USER
group by Sex看见这个错误,凭感觉知道改 '*' 为 'Sex',这样就没有错了,不知道为什么,看到一篇文章,豁然开朗: 理解 group by
相关文章推荐
- invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause
- Column \'表名.某列名\' is invalid in the select list because it is not contained in either an aggregate f
- Column \'表名.某列名\' is invalid in the select list because it is not contained in either an aggregate f
- ERROR 1055 (42000): Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregate
- SQL---Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column '
- ERROR 1055 (42000): Expression #1 of ORDER BY clause is not in GROUP BY..sql_mode=only_full_group_by
- This function has none of Deterministic,no sql,or reads sql data in its declaration and binary logging is enabled(you *might* want to use the less safe log_bin_trust_function_creators variable
- mysql查询报错: ORDER BY clause is not in GROUP BY..this is incompatible with sql_mode=only_full_group_by
- mysql查询报错: ORDER BY clause is not in GROUP BY..this is incompatible with sql_mode=only_full_group_by
- SELECT list is not in GROUP BY clause and contains nonaggregated column this is incompatible with sql_mode=only_full_group_by
- Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'userinfo.
- MySQL分组查询时出现错误SELECT list is not in GROUP BY ;this is incompatible with sql_mode=only_full_group_by
- 关于OPENCV The node is neither a map nor an empty collection in function cvGetFileNodeByName
- mysql遇见Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggre的问题
- Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column 'inform
- [Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated..
- [mysql] Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'lo
- How To Check Whether Physical Standby is in Sync with the Primary or Not?
- [Err] 1055 - Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated colum
- mysql 5.7会遇到 [Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause ...的问题