1. 程式人生 > >【MySQL】出現“SELECT list is not in GROUP BY clause and contains xxx”錯誤提示

【MySQL】出現“SELECT list is not in GROUP BY clause and contains xxx”錯誤提示

engine 數據 連接 設置 subst sql_mode xxx and sele

需要設置為 sql_mode=‘NO_ENGINE_SUBSTITUTION‘

設置方式:

1、MySQL客戶端連接上數據庫。

2、當前操作的數據切換成 mysql

3、執行 SELECT @@global.sql_mode

4、執行 SET GLOBAL sql_mode=‘NO_ENGINE_SUBSTITUTION‘;

成功解決。

【MySQL】出現“SELECT list is not in GROUP BY clause and contains xxx”錯誤提示