Select TOP 1 *  from 表

解决方案 »

  1.   

    楼上的兄弟说得很对,还可以:    select id=identity(int,1,1),* into #tmp from tablename
        select * from #tmp where id=1
        go
      

  2.   

    回复人: qianmo(广袤) ( ) 信誉:100  2005-04-08 02:05:00  得分: 0  
     
     
       那第N行呢??
      
     
        select id=identity(int,1,1),* into #tmp from tablename
        select * from #tmp where id=N
        go
      

  3.   

    select id=identity(int,1,1),* into #tmp from tablename
        select * from #tmp where id=N
      

  4.   

    set rowcount 1
    select * from talblename