select 身份证号,sum(1) from table group by 身份证号;

解决方案 »

  1.   

    select count(*) from (
    select name from tbname group by name having count(*)>1
    ) t;
      

  2.   

    select 身份证号,count(1) from table group by 身份证号;
      

  3.   

    delete from tbname where rowid not in(
    select min(rowid) from tbname group by 身份证号);
      

  4.   

    查看这个表里有多少条记录的身份证号码有重复的:
    select count(身份证号) from  table_name group by 身份证号
    把重复的删掉,只保留一条记录:
    up楼上的方法。
      

  5.   

    1.select * form table a where a.rowid>=(select min(rowid) from table b where a.身份证号=b.身份证号)
    2.select 身份证号,sum(1) from table group by 身份证号