不行的,
換一種方法吧select bb=identity(int,1,1),* into #c  from 表select  *  from  #c   --------bb就是顯示的行

解决方案 »

  1.   

    select hang =identity(int,1,1),* into #c  from 表select  *  from  #c     
      

  2.   

    嗯.我试过了,谢谢楼上大侠的解答.
    有没有另外一种方法,不需要新建表,只需要执行一条SQL语句就可以得到含有标示行数列的结果集呢?
    请高手指教,谢谢!
      

  3.   

    在罗嗦的问一句,执行 "select hang =identity(int,1,1),* into #new_table_name  from 表"
    生成的新表new_table_name是以什么的样的形式存在的呢? 
    应该不是放在临时表里吧,俺也没找到
      

  4.   

    select *,标示行数的列=(select count(1) from tb where 成绩>a.成绩)+1 from tb a order by 标示行数的列