#### sql語句報錯問題 #1055 - Expression #3 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'cash.sdb_login_log.id' which ...
https: blog.csdn.net aaajavac article details ...
2020-03-10 23:39 2 1488 推薦指數:
#### sql語句報錯問題 #1055 - Expression #3 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'cash.sdb_login_log.id' which ...
由於自己的本地網站環境使用了 mysql 8.0的版本,在測試一個 group by 的sql查詢語句時出現了如下的錯誤,在百度了不少的解決方法后,終於解決了了,記錄一下。 錯誤代碼: Expression #2 of SELECT list is not in GROUP ...
原因分析:MySQL5.7版本默認設置了 mysql sql_mode = only_full_group_by 屬性,導致報錯。 1、查看sql_mode SELECT @@sql_mode; 2、去掉ONLY_FULL_GROUP_BY,重新設置值。 SET ...
1055 - Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'fbil.fund_bidding_id' which is not functionally ...
今天執行sql語句時出現了高版本mysql愈發不兼容問題 'this is incompatible with sql_mode=only_full_group_by' 所以改一下mysql配置 在mysql.ini或者my.cnf下增加 進行重啟即可 ...
一、基礎環境linux centos 7, mysql 5.7.26 二、問題描述使用group by 進行分組查詢時,提示異常: SELECT list is not in GROUP BY clause and contains nonaggregated column ‘XXX ...
具體出錯提示: [Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column 'information_schema.PROFILING.SEQ ...
今天在測試服務器上突然出現了這么一個MySQL的問題,同樣的代碼正式服沒有問題,那肯定就是出在了配置上,查了一下原因才明白原來是數據庫版本為5.7以上的版本, 默認是開啟了 only_full_group_by 模式的,但開啟這個模式后,原先的 group by 語句就報錯 ...