Skip to main content
 首页 » 数据库

mysql 单表查找重复的数据

2022年07月18日138傻小

SELECT base.* from
(
select id_no,COUNT(*) from aim.aim_t_cust_base GROUP BY id_no HAVING COUNT(*) >1
) as t

left join aim.aim_t_cust_base base on t.id_no = base.id_no


本文参考链接:https://www.cnblogs.com/maohuidong/p/11009653.html