我試圖在vb.net中運行此查詢,但每次它超時,因爲它超過49秒。vb.net SQL查詢將不會運行 - 超時
Dim customer_sequence As Integer = 0
Dim description As String = ""
Dim customer_cost As Double = 0
Dim customer_connection As Double = 0
Dim customer_ac As Double = 0
Dim customer_sc As Double = 0
Dim reseller_cost As Double = 0
Dim reseller_connection As Double = 0
Dim reseller_ac As Double = 0
Dim reseller_sc As Double = 0
SQL = "UPDATE billing_calldata SET " _
& "status = 'c', " _
& "customer = " & customer_sequence & ", " _
& "description = '" & description & "', " _
& "customer_cost = " & customer_cost & ", " _
& "customer_ac = " & customer_ac & ", " _
& "customer_sc = " & customer_sc & ", " _
& "reseller_cost = " & reseller_cost & ", " _
& "reseller_ac = " & reseller_ac & ", " _
& "reseller_sc = " & reseller_sc & " " _
& "WHERE sequence = " & sequence & ";"
查詢的輸出是:
UPDATE billing_calldata SET
status = 'c',
customer = 470,
description = 'Mobile',
customer_cost = 0.006175,
customer_ac = 0,
customer_sc = 0,
reseller_cost = 0,
reseller_ac = 0,
reseller_sc = 0
WHERE sequence = 10348384;"
在我的應用程序的所有其他查詢工作正常和快速,但它只是這樣一個需要年齡。
非常多[重複/轉貼](http://stackoverflow.com/a/37262159/1070452) – Plutonix
這是一個SQL問題,直到您提供您的代碼執行查詢。 –
對不起,那不是假設在那裏。它是在實際的代碼 – charlie