select top 1 * from 表 where 时间字段 = (select min(时间字段) from 表)

解决方案 »

  1.   

    slect * form 表名
    where 时间字段 in (selct min 时间字段 from  表名
      )
      

  2.   

    select * from yourtable where Coltime in (select min(coltime) from t_time)
      

  3.   

    不明白你的意思,两种语句你看一看:
    select * from yourtable where Coltime in (select min(coltime) from yourtable)
    select * from yourtable where Coltime in (select max(coltime) from yourtable)