navicat 連接mysql執行sql 報1055

[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

navicat連接mysql數據庫執行sql語句是報1055,但是數據已經正常更新

解決:


-- 查看sql_mode設置  
show variables like "sql_mode";  
-- 設置sql_mode  
set sql_mode='';   
set sql_mode='NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES'; 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章