最赞回答 / weibo_绿猫绿猫_0
可以先看看不加where条件的select语句,看看会删除哪些数据==SELECT * FROM tdb_goods AS t1 LEFT JOIN (SELECT goods_id,goods_name FROM tdb_goods GROUP BY goods_name HAVING count(goods_name) >= 2 ) AS t2 ON t1.goods_name = t2.goods_name ; (明显的亲,你还没理解inner join和left join的区别)
2018-04-03