【发布时间】:2018-07-31 20:48:00
【问题描述】:
在 SQL Server 中,在处理大型数据(例如插入或更新 100000 行)时,与表变量相比,临时表的性能(在时间方面)要好得多(参考:SQL Server Temp Table vs Table Variable Performance Testing)
我看过很多比较临时表和表变量的文章,但仍然不明白是什么让临时表在处理大数据时更高效?仅仅是它们被设计成的行为方式还是其他什么?
【问题讨论】:
-
已经有很多答案了,.....stackoverflow.com/questions/11857789/…
标签: sql-server temp-tables table-variable