http://www.bincess.cn/Topics/ViewTopic_439.html

解决方案 »

  1.   

    delete a from 表 as a where exists(select 1 from 表 where 字段1=a.字段1 and 字段2=a.字段2 and 字段3<a.字段3)
      

  2.   

    1>如果是只要查询出一个,可以这样
    select * 
    from 表 A
    where 
        not exists(
             select * from 表 where 字段1=A.字段1 and 字段2=A.字段2 and 字段3>A.字段3)
    2>如果是删除到只留一个,楼上的就可以了!