select top 2 * into #temp from table
set rowcount 2-1
delect * from #temp
select * from #temp

解决方案 »

  1.   

    alter table add cid int identity(1,1)select * from table where cid=2alter table drop column cid
      

  2.   

    alter table add cid int identity(1,1)select * from table where cid=2alter table drop column cid
      

  3.   

    OR:select identity(int,1,1) id,* into #temp from table
    select * from #temp where id=2
      

  4.   

    select top 1 * from 
     (select top 2 * from yourtable order by begindate) as A
    order by A.begindate desc
      

  5.   

    alter table add cid int identity(1,1)select * from table where cid=2alter table drop column cid
      

  6.   

    I WILL TRY IT.
    IF IT CAN BE RUN,I WILL GIVE YOUR POINTS.