当前位置: 代码迷 >> VFP >> 记录删除有关问题
  详细解决方案

记录删除有关问题

热度:1579   发布时间:2013-02-26 00:00:00.0
记录删除问题
表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)
  相关解决方案