[Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated
[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 BY clause; this is incompatible with sql_mode=only_full_group_by
主要是因為sql_mode設定導致的這個錯誤,設定錯誤有很多可能下面會有一下我解決這個錯誤檢視的文章,本篇主要寫我自己的解決辦法。
-- 檢視sql_mode設定
show variables like "sql_mode";
-- 設定sql_mode
set sql_mode='';
set sql_mode='NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES';
問題成功解決!
也可以可以手動修改MySql本地配置檔案:
相關推薦
mysql錯誤:[Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated
inf 新版 官方 express dep eject .sql nis available 今天遷移django數據庫的時候,跑程序的時候出現這樣的錯誤: [Err] 1055 - Expression #1 of ORDER BY clause is not in GR
[Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause 的問題 MySQL
fun () mage nco info sele 方案 all inf 問題:[Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregate
MySql遇到 [Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggr
MySql遇到 [Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column ‘information_schema.PRO
[Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated
[Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column 'information_schema.PROFILING.SEQ' which is
[Err] 1055 - Expression #1 of ORDER BY clause is not 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
MySQL升級到5.7.22 遇到的第一個問題 “[Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and
即上次升級了MySQL到5.7.22 後立馬就開始導一些表開始體驗下這個版本的資料庫,結果剛建完表語句執行就報了一個錯。具體資訊如下“[Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contain
MySQL升級到5.7.16 遇到的第一個問題"[Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and"
升級之後馬上體驗了一下,執行“UPDATE user_course SET userid = 200 WHERE id = 28;”,結果報[Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and cont
mysql-1055錯誤 MySQL [Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause
mysql-1055錯誤 MySQL [Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause 想著給資料庫裡插入一條測試資料,居然報錯了可奇葩的是報錯了資料居然還插入進去了。 看了一下原來
MySQL中的報錯[Err] 1055 -- Expression #1 of ORDER BY
原因是因為配置檔案中載入資料的時候排序出了問題。。詳細問題沒搞懂 加兩行程式碼可以解決 1.當執行select version(), @@sql_mode; 的時候可以看到 2.把ONLY_FULL_GROUP_BY設定為空就可以解決問題。。 SET sql_
1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contai
之前一直使用的mysql5,突然換成8之後,有許多地方不一樣,今天就碰到一個。 在使用sql語句建立表時,報錯: 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains
解決mysql報錯:- Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column 'information_schema.PROFILING.SEQ'
_for tran contains column schema mysql eat table express mysql執行報錯: - Expression #1 of ORDER BY clause is not in GROUP BY clause and cont
mysql Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nona
mysq png gin creat code ted inf com 修改 1. 操作mysql的時候提示如下錯誤 [Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and co
Expression #1 of ORDER BY clause is not in GROUP BY clause and"
升級之後馬上體驗了一下,執行“UPDATE user_course SET userid = 200 WHERE id = 28;”,結果報[Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY cla
Expression #1 of ORDER BY clause is not in GROUP BY clause...
問題描述: 在mysql客戶端執行delete刪除語句時,報出了以下錯誤: [Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP
mysql查詢報錯: ORDER BY clause is not in GROUP BY..this is incompatible with sql_mode=only_full_group_by
在用mysql執行如下查詢的時候: select * from `sys_user_group` group by `GROUP_ID` 報錯資訊如下: [Err] 1055 - Expr
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
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 (_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