从数据集中选出其中col1列为最小时的记录,如
table1(col1,col2)
选出其中当col1为最小值的时候,col1和col2的值

解决方案 »

  1.   

    select * from table where coll in (select min(coll) from table)
      

  2.   

    select col1, col2 from table where coll = (select min(coll) from table)
      

  3.   

    DainelLee(Iinexperience)的回复有误* 所有,strover(chao) 的才是正确的
      

  4.   

    select col1, col2 from table where coll in (select min(coll) from table)
      

  5.   

    select coll,col2 from table1 where coll in (select min(coll) from table)