mysql
create temporary table temp select 身份证,count(*) as cnt from tbl_name group by 身份证;
select a.* from tbl_name a,temp b where a.身份证=b.身份证 and b.cnt>1;mssql可用子查询
create temporary table temp select 身份证,count(*) as cnt from tbl_name group by 身份证;
select a.* from tbl_name a,temp b where a.身份证=b.身份证 and b.cnt>1;mssql可用子查询
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货