O.O*_*O.O 6 sql-server-2008 temporary-tables
我最近在一个非常慢的存储过程中工作(运行需要 5 分钟)。我做了一个非常小的调整:
declare @tempTable table
(
...
)
insert into @tempTable
select .....
Run Code Online (Sandbox Code Playgroud)
到
select ... into #tempTable from someTable
Run Code Online (Sandbox Code Playgroud)
然后脚本在大约 2 秒内运行。什么可以解释这个时差?
归档时间: |
|
查看次数: |
1569 次 |
最近记录: |