我想知道是否可以在SQL Server 2014中同时运行查询
以下是我想知道的原因。
Select * into #temp1 from table1
Select * into #temp2 from table2
假设第一行需要15秒才能运行,第二行需要10秒。如果我正常运行此查询,则需要大约25秒。
如果我可以同时运行2行,则此查询只需15秒。
有可能吗?
由于
答案 0 :(得分:0)
这两个查询是select * from two different tables (table1 and table2)
和insert data into two different temp table #temp1 and #temp2.
你可以同时运行这两个查询。每个select * from..
的查询持续时间对另一个的影响不大。