查找user_1表中的第三条记录
delete from user_1 where ????那不知该怎么写

解决方案 »

  1.   

    select *,identity(id,1,1) id 
      into #tmp
      from user_1select * 
      from #tmp
     where id=3
      

  2.   

    --主键ID
    delete from a where id=(select  top 1 id from a where id not in(select top 2 id from a))
      

  3.   

    对不起,有点错
    select *,identity(int,1,1) id 
      into #tmp
      from user_1select * 
      from #tmp
     where id=3