没有指定行的语法
你要查某行可以这样select identity(int,1,1) as row,* into #temp from yourtable 
select * from #temp where row=你的行
drop table #temp

解决方案 »

  1.   

    我对“select 查表中的第3行”干什么用感兴趣
    哪儿有责中需求?
      

  2.   


    select identity(int,1,1) as row,* into #temp from yourtable 
    select * from #temp a where a.row=你的行
    drop table #temp
      

  3.   

    是这样的在ASP中.我有一个html的表,是一个三列N行的表,,表里面的值是用for i=0 to Ubound(ct) setp 3 循环得到的,第一行的第一列值是数据库表的第i行,第二列值是数据库表的第i+1行,第三列值是数据库表的第i+2行.这就是循环的内容.
    在数据库中不是有地址指针吗??我记得在Oracle中都行的,,不知道在MSSQL和access中怎么搞..
      

  4.   

    小马哥..你的这语句只能在MSSQL中用吗??在Access中用不成啊..
      

  5.   

    你再试试这个看行不行
    alter table yourtable add row int identity(1,1)
    select * from yourtable where row=你的行
    alter table yourtable drop column row
      

  6.   

    select aa,bb from (select identity(int,1,1) as row,aa,bb from yourtable) derivedtbl where row=你的行 
      

  7.   

    select top 1 * from test1 where name not in(select top 2 name from test1)
    试试吧