为了账号安全,请及时绑定邮箱和手机立即绑定

查找重复记录报错

请问一下下面这个错误是什么原因啊?ERROR 1055 (42000): Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'mysql.tdb_goods.goods_id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

正在回答

1 回答

select 后面的东西(list)必须出现在group by后面

试试在group by加上list

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

举报

0/150
提交
取消
与MySQL的零距离接触
  • 参与学习       396667    人
  • 解答问题       3497    个

本课程涵盖全部MySQL数据库的基础,学习MySQL数据库的基础知识

进入课程

查找重复记录报错

我要回答 关注问题
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号