Caused by: java.sql.SQLSyntaxErrorException: Expression #16 of SELECT list is not in GROUP BY clause
現象是這樣的,前端訪問應用稽核功能,系統出現數據庫錯誤,前端的message將錯誤資訊也展示出來了。
原因是這樣:
- 錯誤資訊的產生是因為資料庫配置與SQL語句不相容
Caused by: java.sql.SQLSyntaxErrorException: Expression #16 of SELECT list is not in GROUP BY clause and contains nonaggregated column ‘r.dicName’ which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
解決方式:需要修改資料庫sql_mode的only_full_group_by配置。
- 錯誤資訊的展示是因為appstore-portal使用的exception庫不是最新版本,導致將異常描述資訊作為API的響應描述資訊返回了,現在已經將appstore-portal使用的exception庫升級到了最新的1.1.1版本。
相關推薦
Caused by: java.sql.SQLSyntaxErrorException: Expression #16 of SELECT list is not in GROUP BY clause
現象是這樣的,前端訪問應用稽核功能,系統出現數據庫錯誤,前端的message將錯誤資訊也展示出來了。
解決大於5.7版本mysql的分組報錯Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated
原因: MySQL 5.7.5和up實現了對功能依賴的檢測。如果啟用了only_full_group_by SQL模式(在預設情況下是這樣),那麼MySQL就會拒絕選擇列表、條件或順序列表引用的查詢,這些查詢將引用組中未命名的非聚合列,而不
MySQL: 1055 Expression #3 of SELECT list is not in GROUP BY clause and contains nonaggregated column
group by有一個原則,就是select後面所有的列中,沒有使用聚合函式的列,必須出現在group by子句中。
Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column
技術標籤:資料庫 執行報錯: Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column ‘test.dept_emp.emp_no’ which is not functionally dependent on columns in GROU
解決方案:Mysql for mac 出現 Expression #11 of SELECT list is not in GROUP BY clause
技術標籤:解決方案mysql 一、問題描述 自從博主更換mysql-5.7.31-macos10.14-x86_64之後出現Expression #11 of SELECT list is not in GROUP BY clause這樣的異常這主要是因為在mysql5.7之後,sql_model默認了O
mysql遇見Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggre
技術標籤:work 同一個程式,執行在dev和prod不同環境裡,同一個介面竟然一個正常,一個報錯500,但是資料庫的資料都一樣的,搜了很久,終於在一篇文章裡面解決了: 問題出現的原因: MySQL 5.7.5及以上功能依賴
Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregate
在mysql 5.7使用group by時會出現錯誤,首先表資訊如下: select name from student group by classid;會出現下列錯誤
MySQL遇見SELECT list is not in GROUP BY clause and contains nonaggre的問題
目錄報錯現象原因解決方法 報錯現象 執行SQL報錯如下: SELECT student.s_no,student.s_name,SUM(result.mark) FROM student,result WHERE student.s_no=result.s_no GROUP BY student.s_no
mysql 5.7.28 中GROUP BY報錯問題 SELECT list is not in GROUP BY clause and contains no
----mysql 5.7.28 中GROUP BY報錯問題SELECT list is not in GROUP BY clause and contains no------ 解決方案:
SELECT list is not in GROUP BY clause and contains nonaggregated
【問題】 【原因】 MySQL 5.7.5及以上功能依賴檢測功能。如果啟用了ONLY_FULL_GROUP_BY SQL模式(預設情況下),MySQL將拒絕選擇列表,HAVING條件或ORDER BY列表的查詢引用在GROUP BY子句中既未命名的非集合列,也
mysql使用group by查詢報錯SELECT list is not in GROUP BY clause and contains nonaggregated column...原因及解決方案
在專案中需要用到group by進行聚合計算,在計算的同時也要查出一些其他欄位來返回給前端。於是就有了這個錯誤的出現。
MYSQL---Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column '
MYSQL---Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column \'
關於MySQL執行建立表命令後出現1055錯誤的解決辦法--Expression #1 of ORDER BY clause is not in GROUP BY clause and contain
技術標籤:日常開發FAQmysqlsql資料庫 關於MySQL執行建立表命令後出現1055錯誤的解決方法
1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column 'information_schema.PROFILING.SEQ' which is not functionally dependent on columns in GROUP BY clause
[Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column \'information_schema.PROFILING.SEQ\' which is not functionally dependent on columns in GROUP
window下 mysql5.7查詢報錯: ORDER BY clause is not in GROUP BY..this is incompatible with sql_mode=only_full_group_by
一、舊方法,修改mysql配置檔案,但是會導致資料丟失等不可預知的錯誤 在用mysql執行如下查詢的時候:
In aggregated query without GROUP BY, expression #3 of SELECT list contains nonaggregated column �
錯誤: In aggregated query without GROUP BY, expression #3 of SELECT list contains nonaggregated column \'emsdb_pro.mainspareparts.CreationTime\'; this is incompatible with sql_mode=only_full_group_
Caused by: java.sql.SQLException: ORA-01861: literal does not match format string
技術標籤:ORACLEScalaSpark 利用Spark 連結oracle資料庫 通過sq提取資料操作時,報錯:
Caused by: java.sql.SQLException: ORA-01861: 文字與格式字串不匹配
專案中遇到這樣一個問題: Caused by:java.sql.SQLException: ORA-01861: 文字與格式字串不匹配
Sqoop報錯:Caused by: java.sql.BatchUpdateException: Incorrect string value: '\xF0\xA4\x8F\x81' 再見亂碼:5分鐘讀懂MySQL字符集設定
sqoop從hive匯出到mysql報錯如下: Caused by: java.sql.SQLException: Incorrect string value: \'\\xF0\\xA4\\x8F\\x81\' for column \'role_name\' at row 68
報錯--->java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'delect from testd
報錯--->java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near \'delect from testdb.