select * from tbname where col=(select max(col) from tbname)
and rownum<2;

解决方案 »

  1.   

    select * from tbname where col=(select max(col) from tbname)
    如果编号不重复就这样了,
    重复的看你查几条。
      

  2.   

    select * from tbname where col=(select max(col) from tbname)
      

  3.   

    select 
        * 
    from (
            SELECT 
                T.*,
                dense_rank() 
                    over (order by t.col DESC) dr
            FROM tbname T
        )
    where dr = 1
    order by col DESC
      

  4.   

    select * from tablename where rownum<2 order by col desc;这个col是你放序号的那一列