我试过
insert into TABLE (<columns>)
select <column>
from <simple query> -- simple query took about 2secs to run
这应该插入大约60万条记录。是慢的(大约10000行30分钟 - 通过SQL Server Management Studio检查表属性中的存储值)所以我杀了它
绝望地重新尝试:
select <columns>
into #tmpTable
from <simple query>
insert into TABLE
select * from #a
花了2秒.....太累了想,它的凌晨2点