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

posted on 2019-06-12 14:52  毛会懂  阅读(180)  评论(0编辑  收藏  举报