簡體   English   中英

是否可以在SQL Server中同時運行2個查詢

[英]Is it possible to run 2 querys at the same time in SQL Server

我想知道是否可以在SQL Server 2014中同時運行查詢

以下是我想知道的原因。

Select * into #temp1 from table1

Select * into #temp2 from table2

假設第一行需要15秒才能運行,第二行需要10秒。如果我正常運行此查詢,則需要大約25秒。

如果我可以同時運行2行,則此查詢應該只需15秒。

可能嗎?

謝謝

這兩個查詢是select * from two different tables (table1 and table2)select * from two different tables (table1 and table2) insert data into two different temp table #temp1 and #temp2.

你可以同時運行這兩個查詢。 每個select * from.. into的查詢持續時間對另一個影響不大。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM