为啥要count
DELETE a FROM tdb_goods a JOIN tdb_goods b ON a.goods_name = b.goods_name AND a.goods_id > b.goods_id 这样不是也能实现吗?最后的>也可以换成小于,干嘛非要count一次呢
DELETE a FROM tdb_goods a JOIN tdb_goods b ON a.goods_name = b.goods_name AND a.goods_id > b.goods_id 这样不是也能实现吗?最后的>也可以换成小于,干嘛非要count一次呢
2017-11-05
举报