GROUP BY 错误1055怎么只能这样写才和老师结果一样?
MYSQL版本不一样GROU BY 存在1055错误
delete t1 from tdb_goods as t1 left join (select min(a.goods_id)goods_id,goods_name from tdb_goods a group by goods_name having count(goods_name)>1) t2
on t1.goods_name = t2.goods_name
where t1.goods_id > t2.goods_id