sql求助!!查询重复列!!
有一个products表,我想查询里面的列name和列standard同时重复的数据。我想先查name重复,然后在name重复里查standard重复的内容,改怎么弄??急!在线等!!!
其他答案
以下两种方法都可以,但第二种方法可以查出重复记录的所有信息:select name,standard,count(*) from productsgroup by name,standardhaving count(*)>1 select * from products p where exists(select 1 from products name=a.name and standar 展开
2010-07-29 13:40
来自北京市
赞(0)点赞赞(0)举报
免责声明:问答内容均来源于互联网用户,房天下对其内容不负责任,如有版权或其他问题可以联系房天下进行删除。




