select a,b,c,d from tablename group by a,b,c,d having count(*)>1

解决方案 »

  1.   

    select * from 表 group by a,b,c,d having count(*)>1
      

  2.   

    select * ,count(*) from 表 group a,b,c,d having count(*)>1
    直接显示出相同记录的数目
      

  3.   

    呵,只有20分,应该不够分吧.
    select count(*) as 重复记录数,a,b,c,d from tablename group by a,b,c,d having count(*)>1
      

  4.   

    select *......group by a,b,c,d.....这里的abcd不出错吗
      

  5.   

    我用select * from 表 group by a,b,c,d having count(*)>1就出错
    在用select a,b,c,d from 表 group by a,b,c,d having count(*)>1就没事怎么回事
      

  6.   

    查询结果中一般不能含有既不是聚合函数又不包含在group子句中的列,可以去查看一下关于group by的帮助,你的查询肯定是违反了这个约束
      

  7.   

    select a,b,c,d from table group by a,b,c,d