主题:查询重复身份证号码
lstdx
[专家分:0] 发布于 2010-05-12 14:31:00
如何在vfp表中,查询身份证号码重复的人员信息?
回复列表 (共2个回复)
沙发
liupeisong [专家分:2340] 发布于 2010-05-12 21:53:00
select * from bmk where sfzh in (select sfzh from bmk group by sfzh having count(sfzh)>1)
板凳
wuzhouhong [专家分:10890] 发布于 2010-05-20 00:01:00
1) Select recno() as _ID,* from 源表 into cursor tempTable1
2) Select * from tempTable1 as A,tempTable1 as B where A.身份证号码==B.身份证号码 and A._ID<>B._ID
我来回复