select * from tbname where col3=(select max(col3) from tbname);

解决方案 »

  1.   

    好像不对哦,
    2003/10/23 AA 2003/10/2309:00:00
    2003/10/23 BB 2003/10/2309:02:00
    2003/10/23 BB 2003/10/2309:04:00
    2003/10/24 AA 2003/10/2409:00:00
    2003/10/24 BB 2003/10/2409:02:00
    2003/10/24 BB 2003/10/2409:04:00
    我要找出2003/10/23 BB 2003/10/2309:04:00和2003/10/24 BB 2003/10/2409:04:00
      

  2.   

    select * from tbname where col3=(select max(to_char(col3,'hh24:mi:ss')) from tbname )
      

  3.   

    select max(to_char(2003/10/23)|| BB  || to_char(2003/10/2309:02:00)) from table
      

  4.   

    我不知道sql语句怎样写,但一个for语句不就实现了吗
      

  5.   

    sorry
    select * from tbname where to_char(col3,'hh24:mi:ss')=(select max(to_char(col3,'hh24:mi:ss')) from tbname )