如题,谢谢!

解决方案 »

  1.   

    select ...top 1.....就可以了
      

  2.   

    是 select field1 from table top 1 where ... 吗???
      

  3.   

    to newfang:我的意思是查询结果只有一条记录.
      

  4.   

    top 1 好象只有SQL Server才可以的
    就用table1.first就可以了
      

  5.   

    to norxi:
    我的表比较大,用table打开的话要很长时间.
    我现在只需要获得其中任意一条记录,来做一个判断,用不着打开整个表吧?
    我想用query取一条记录,这样花的时间就短到可以忽略了
      

  6.   

    我知道了,是 
    select top 1 * from tablename谢谢各位!