表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)