读书人

记录删除有关问题

发布时间: 2012-02-28 13:06:36 作者: rapoo

记录删除问题
表1
xh,xm
要查询xh相同但xm不相同的记录应该怎么写命令?
我用的是vfp6.0

[解决办法]
use 表1
index on xh+xm to sy
total to temp on xh+xm
select * from 表1 where xh in (select xh,count(*) as num from temp group by xh where num> 1)

读书人网 >VFP

热点推荐