碼迷,mamicode.com
首頁 > 數據庫 > 詳細

mysql Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nona

時間:2018-08-30 14:28:22      閱讀:4238      評論:0      收藏:0      [點我收藏+]

標簽:form   操作   code   and   ted   res   only   format   aggregate   

1. 操作mysql的時候提示如下錯誤

[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中的only**字段

修改為

sql_mode=‘STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION‘

技術分享圖片

保存重啟即可

mysql Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nona

標簽:form   操作   code   and   ted   res   only   format   aggregate   

原文地址:https://www.cnblogs.com/youran-he/p/9559639.html

(0)
(0)
   
舉報
評論 一句話評論(0
登錄后才能評論!
? 2014 mamicode.com 版權所有 京ICP備13008772號-2
迷上了代碼!
河北十一选五基本走势