碼迷,juhua225334.cn
首頁 > 數據庫 > 詳細

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

時間:2018-08-30 14:28:22      閱讀:2965      評論: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 juhua225334.cn 版權所有 京ICP備13008772号-2
迷上了代碼!
http://m.juhua225334.cn|http://wap.juhua225334.cn|http://www.juhua225334.cn||http://juhua225334.cn