-- 删除重复记录
DELETE
FROM
phone
WHERE
id NOT IN ( SELECT hd.minid FROM ( SELECT MIN( id ) AS minid FROM phone GROUP BY customer_phone ) hd )
mysql删除重复记录
最新推荐文章于 2024-11-12 11:41:10 发布
-- 删除重复记录
DELETE
FROM
phone
WHERE
id NOT IN ( SELECT hd.minid FROM ( SELECT MIN( id ) AS minid FROM phone GROUP BY customer_phone ) hd )