insert. select 时,怎么对非自增长的列添加顺序值

insert.. select 时,如何对非自增长的列添加顺序值?tb1idintnamechar(10)tb2namechar(10)SQL:insertintotb

insert.. select 时,如何对非自增长的列添加顺序值?
tb1
    id   int
    name   char(10)

tb2
    name   char(10)

SQL:
insert   into   tb1   (id,name)   select   IDENTITY(int,   1,1)   id,   name   from   tb2

以上的SQL无法执行,因为IDENTITY函数只能用在有into子句的Select中,有什么好的办法吗?

[解决办法]
可以這麼做

Select IDENTITY(int, 1,1) As id, name Into #T From tb2
insert into tb1 (id,name) select id,name From #T