select max(field) from table

解决方案 »

  1.   

    select * from  table1 a where (select count(*) from table1 b
     where b.field=a.field and b.field>a.field)<2
      

  2.   

    select * from table1 where field=(select max(field) from table1)
      

  3.   

    select * from table where field in (select max(field) from table)
      

  4.   

    select * from table1 where field1=(select max(field1) from table1)
      

  5.   

    select * from  tablename 
     where field = (select max(field) from tablename)