亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

最后一個指令跑不了 Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'test.p.type_id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

?Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'test.p.type_id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by



正在回答

3 回答

第三頁有個關于group by的解答

0 回復 有任何疑惑可以回復我~

group by 的列 要么必須出現在 select 的查找列中,要么必須是以聚合函數的形式使用

0 回復 有任何疑惑可以回復我~

在mysql的配置文件下my.ini中的[mysqld]下加入

sql-mode=

"STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION"

如果原來有sql -mode=...就把原來的用#注釋掉

,

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消
與MySQL的零距離接觸
  • 參與學習       396747    人
  • 解答問題       3497    個

本課程涵蓋全部MySQL數據庫的基礎,學習MySQL數據庫的基礎知識

進入課程

最后一個指令跑不了 Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'test.p.type_id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號