日期:2014-05-18  浏览次数:20616 次

查询相同记录大于等于2条 如何查?
查询cvencode,cinvcode,ilowerlimit这三个字段都相同且>=2条的记录

------解决方案--------------------
怎么又发一贴?
SQL code
select cvencode,cinvcode,ilowerlimit from T
group by cvencode,cinvcode,ilowerlimit
having count(1) >=2