select * from t a
where (select count(*) from t where fph=a.fph)>1

解决方案 »

  1.   

    select fph,col,... from table group by fph having count(fph) > 1 order by fph
      

  2.   

    select * 
    from tablename
    where fph in ( select fph from tablename group by fph having count(*)>1)
      

  3.   

    select a.* 
     from tab a,(select fph from tab group by fph having count(*)>1) b
     where a.fph=b.fph
      

  4.   

    SELECT *
        FROM tbl
        GROUP BY fph
        HAVING COUNT(fph) > 1
      

  5.   

    结贴:
    第一位:运行通过,但没有排序;++
    第二位:我只查发票号(fph),运行通过,但是相当于DISTINCT了,无效;
    第三位:++++++++++++++++++
    第四位没运行
    第五位运行出错!
    第六位不知道你说的是谁?
    多谢你们支持!!!!!!!!!