标签: sql-server database-performance
以下仅返回3条记录,但不到第二条: -
SELECT * FROM SomeView Where X='1233'
以下需要半分钟: -
INSERT INTO @T111 SELECT * FROM SomeView Where X='1233'
如果我使用临时表,则不到一秒钟: -
SELECT * INTO #TTT FROM SomeView Where X='1233'
请说明:)