select * from table where 字段1='值'

解决方案 »

  1.   

    select top 1 * from 表
      

  2.   

    select top 1 * from 表 where 条件
      

  3.   

    select top n * from table where conditions=...
    n:就是你要返回的数量
      

  4.   

    my god,n 多人回答,俺学习中
      

  5.   

    同意思楼上的select top n * from table where conditions=...
    n:就是你要返回的数量
      

  6.   

    返回符合条件的前n条记录select top n 字段1,……,字段X from table_name where conditions
      

  7.   


    如果取从第n条到m条记录,则如下:select top m 主键字段,* from table_name where 主键字段 not in (select top n * from table_name where conditions)
      

  8.   

    set rowcount 1
    select * from TableName
    set rowcount 0