0
我得到的excecuteNonQuery
行此錯誤:SQL語句的結束後發現VB.net OLE DB錯誤
人物。
我的代碼:
deleteObj.CommandText = "UPDATE STUDENTS SET std_name = @name where std_id = @id; UPDATE BALANCE SET Amount= @amount where [email protected]"
deleteObj.Parameters.AddWithValue("@name", txtboxName.Text)
deleteObj.Parameters.AddWithValue("@id", ComboBox1.SelectedItem)
deleteObj.Parameters.AddWithValue("@amount", txtboxBalance.Text)
objConnection.Open()
deleteObj.ExecuteNonQuery()
objConnection.Close()
是@amount真是一個字符串?我希望不是。 – 2011-04-23 17:27:18