Select  *  into T1 from  T2  需要在T1里面添加一个自动增加的字段 并且 把自动增加的值放到里面如上面 

解决方案 »

  1.   

    select * , px = identity(int,1,1) into T1 from T2
      

  2.   

    select * , id1 = identity(int,1,1) into t1 from t2
      

  3.   

    select identity(int,1,1) as id ,* into T1 from T2
      

  4.   

    create table t2(id int,a int,b int)
    go
    insert into t2 select 1,2,3
    union all
    select 11,22,33
    union all
    select 111,222,333select idd=identity(int,1,1),t2.* into t1 from t2
    select * from t1