0
有沒有辦法做到這一點?我想檢索數據的每個計數在一個領域我想檢索一個字段中的每個計數特定數據
這裏是我的代碼..
Dim cmd1 As New SqlCommand("SELECT COUNT(support) AS support " & _
"FROM Studz_Table WHERE support ='others'",conn)
dim int1 as integer = cmd1.executescalar
Dim cmd2 As New SqlCommand("SELECT COUNT(support) AS support " & _
"FROM Studz_Table WHERE support ='myself'",conn)
dim int2 as integer = cmd1.executescalar
Dim cmd3 As New SqlCommand("SELECT COUNT(support) AS support " & _
"FROM Studz_Table WHERE support ='parent'",conn)
dim int3 as integer = cmd1.executescalar
有沒有簡單的方法來做到這一點?
yeah..that helps..tnx隊友.. – user3211476
hmmm..another thing..can我們在SQL中使用循環在UPDATE? – user3211476
@ user3211476:你的第二個問題看起來像一個不同的問題,請花時間先接受上述答案。然後問一個單獨的問題。謝謝。 – Neolisk