單表查找重複的數據

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

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

相關文章
相關標籤/搜索