select count(*),* from ABC

解决方案 »

  1.   

    select identity(int,1,1),* into #temp from ABC  // 把当前序列号,和当前行,插入到零时表#temp中select * from #temp drop table #temp  //删除零时表
      

  2.   

    上面的错了select identity(int,1,1) Sequence,* into #temp from ABC  // 把当前序列号,和当前行,插入到零时表#temp中select * from #temp drop table #temp  //删除零时表