正在加载中...
信息详页
返回SQL语句-统计全部数据,过滤掉其中两个字段同时重复的记录
标准查询语句结果:(表名:Test2)
select * from Test2
滤掉其中两个字段同时重复的记录结果:(表名:Test2 ;需要过滤重复记录的两个字段:A,B)
select * from Test2 where ID in (select min(ID) from Test2 group by A,B)
select * from [Scadmission] where ID in (select min(ID) from [Scadmission] group by [grid],[ncid])