JavaShuo
欄目
標籤
mysql使用DISTINCT函數,報錯ERROR 1140 (42000): In aggregated query without GROUP BY.....
時間 2021-01-07
標籤
sql
數據庫
mysql
欄目
MySQL
简体版
原文
原文鏈接
現象: 執行sql SELECT COUNT(DISTINCT ( colum1 )),colum2, colum3 FROM table;報錯ERROR 1140 (42000): In aggregated query without GROUP BY..... 原因: mysql的sql_mode默認開啓了only_full_group_by模式,導致mysql的sql的group by
>>阅读原文<<
相關文章
1.
mysql報錯1140 In aggregated query without GROUP BY, expression #2 of SELECT list contains nonaggregate
2.
MySQL執行多表聯查時,報錯ln aggregated query without GROUP BY
3.
In aggregated query without GROUP BY...this is incompatible with sql_mode=only_full_group_by
4.
mysql5.7執行sql語句報錯:In aggregated query without GROUP BY, expression #1 of SELECT list contains nonagg...
5.
mysql distinct&group by 應用
6.
MySQL GROUP BY 報錯
7.
ubuntu16.04 mysql group報錯ERROR 1055 (42000): Expression #1
8.
mysql中函數DISTINCT,group by,CONCAT及GROUP_CONCAT的使用
9.
mysql 使用group by報錯 sql_mode=only_full_group_by
10.
解決mysql報錯[Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause
更多相關文章...
•
SQL GROUP BY 語句
-
SQL 教程
•
MySQL GROUP BY:分組查詢
-
MySQL教程
•
Composer 安裝與使用
•
漫談MySQL的鎖機制
相關標籤/搜索
group+distinct
distinct&group
group...by
err
使用庫函數
query
distinct
MySQL報錯
MySQL
SQL
MySQL教程
Hibernate教程
SQLite教程
mysql
應用
數據傳輸
0
分享到微博
分享到微信
分享到QQ
每日一句
每一个你不满意的现在,都有一个你没有努力的曾经。
最新文章
1.
添加voicebox
2.
Java 8u40通過Ask廣告軟件困擾Mac用戶
3.
數字圖像處理入門[1/2](從幾何變換到圖像形態學分析)
4.
如何調整MathType公式的字體大小
5.
mAP_Roi
6.
GCC編譯器安裝(windows環境)
7.
LightGBM參數及分佈式
8.
安裝lightgbm以及安裝xgboost
9.
開源matpower安裝過程
10.
從60%的BI和數據倉庫項目失敗,看出從業者那些不堪的亂象
本站公眾號
歡迎關注本站公眾號,獲取更多信息
相關文章
1.
mysql報錯1140 In aggregated query without GROUP BY, expression #2 of SELECT list contains nonaggregate
2.
MySQL執行多表聯查時,報錯ln aggregated query without GROUP BY
3.
In aggregated query without GROUP BY...this is incompatible with sql_mode=only_full_group_by
4.
mysql5.7執行sql語句報錯:In aggregated query without GROUP BY, expression #1 of SELECT list contains nonagg...
5.
mysql distinct&group by 應用
6.
MySQL GROUP BY 報錯
7.
ubuntu16.04 mysql group報錯ERROR 1055 (42000): Expression #1
8.
mysql中函數DISTINCT,group by,CONCAT及GROUP_CONCAT的使用
9.
mysql 使用group by報錯 sql_mode=only_full_group_by
10.
解決mysql報錯[Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause
>>更多相關文章<<