Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'userinfo.
執行sql
set global sql_mode=‘STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION’;
set session sql_mode=‘STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION’;
SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,‘ONLY_FULL_GROUP_BY’,’’));
相關推薦
Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'userinfo
說明情況: 首先我是在Linux伺服器上新裝了一個mysql , 原先版本為5.7.22 , 現在不小心裝成了5.7.16 , 專案啟動是時候跳轉首頁不顯示資料 , 後臺開始報錯 : 如下 , 具體錯誤bug忘了複製截圖 , 只保留了
Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'userinfo.
執行sql set global sql_mode=‘STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGIN
mysql資料庫版本問題Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated colum
一、查詢mysql 相關mode 1、show variables like '%sql_mode%'命令 2、select version(), @@sql_mode 命令 沒有結果 3、用sql查詢 select @@global.sql_mode 有結果了
記錄一次mysql由5.6升級到5.7出現的異常---Expression #23 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'c.commentCount' which is
### Error querying database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Expression #23 of SELECT list is not in GROUP BY clause an
【問題解決】Expression #30 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'zxj
問題描述: 安裝了mysql5.7,用group by 查詢時丟擲如下異常: Expression #30 of SELECT list is not in GROUP BY clause and
MySQL: Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'sss
今天在執行MySQL中sql語句的時候報錯了,執行的sql語句: SELECT prov_desc, area_desc, month_id, MAX(total_
Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggre
理解 出現 sco res ima 保存 engine .cn ict 原文鏈接:https://blog.csdn.net/hq091117/article/details/79065199 https://blog.csdn.net/allen_tsang/artic
ERROR 1055 (42000): Expression #1 of SELECT list is not in GROUP BY clause and contains
mysql在查詢命令時出錯: ERROR 1055 (42000): Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'DBname.table.id' whi
ERROR 1055 (42000): Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregat
今天在學習“六天帶你玩轉資料庫”的第五天課程表子查詢的時候遇到了如下報錯:暫未解決求各位大佬幫忙 ERROR 1055 (42000): Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggr
mysql報錯Expression #1 of SELECT list is not in GROUP BY clause and contains non
專案執行得好好的,換了個數據庫伺服器後就報這個錯了 版本原因 記錄解決辦法 //執行語句 set global sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZER
ERROR 1055 (42000): Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregate
select @@global.sql_mode; only_full_group_by :使用這個就是使用和oracle一樣的group 規則, select的列都要在group中,或者本身是聚合列(SUM,AVG,MAX,MIN) 才行,其實這個配置目前個人感覺和di
mysql遇見Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggre的問題
問題出現的原因: MySQL 5.7.5及以上功能依賴檢測功能。如果啟用了ONLY_FULL_GROUP_BY SQL模式(預設情況下),MySQL將拒絕選擇列表,HAVING條件或ORDER BY列表的查詢引用在GROUP BY子句中既未命名的非集合列,也不在功能上依賴於
mysql報錯:Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggre
detail mode sql_mode reat 配置文件 ESS ssi select color 原因: https://blog.csdn.net/fansili/article/details/78664267 解決辦法: 1:查看mysql配置文件
Expression #4 of SELECT list is not in GROUP BY clause and contains nonaggregated colum
這個錯誤發生在mysql 5.7.5 和以後上,因為5.7.5預設的sql模式配置是 ONLY_FULL_GROUP_BY, 這個配置啟用的是 “嚴格ANSIsql 規則”,嚴格ANSI sql 規則要求在group by的時候,沒有聚合的列,在group by的時候,
關於mysql #1 of SELECT list is not in GROUP BY clause and contains 的問題
今天幫老師修改資料庫的一些資料,發現同一條語句在伺服器上的資料庫中可以執行,但是在我自己電腦的資料庫就不可以。錯誤提示為: #1 of SELECT list is not in GROUP BY clause and contains nonaggregated co
Mysql解決SELECT list is not in GROUP BY clause and contains nonaggregated column 問題
轉自:https://blog.csdn.net/u011676300/article/details/79564446 在使用GROUP BY對Mysql的資料表進行查詢時如果出現以下錯誤 select * from user group by age; ERROR 1055 (420
mysql SELECT list is not in GROUP BY clause and contains nonaggregated column
安裝了mysql5.7,用group by 查詢時丟擲如下異常: Expression #3 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'userinfo.t_lon
mysql問題解決SELECT list is not in GROUP BY clause and contains nonaggregated column
好的 sql_mode start nbsp which pre 發生 cti agg 今天在Ubuntu下的部署項目,發現一些好好的列表頁面發生 1055:Expression #11 of SELECT list is not in GROUP BY clause
mysql (_mysql_exceptions.OperationalError) (1055, "Expression #1 of SELECT list is not in GROUP BY clause
sudo gedit /etc/mysql/my.cnf在開啟的my.cnf檔案中新增 sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES 儲存,退出 重啟mysql:/etc/init.d/mysql restart 登入mysql:mysql
mysql Syntax error or access violation: 1055 Expression #1 of SELECT list is not in GROUP BY clause
mysql使用group by 報錯: Syntax error or access violation: 1055 Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'XX