即时通讯使用此代码更新mysql上的列,但我想添加其他列,我该怎么做?
这是我的代码:
Dim query As String = "UPDATE EmployeeInfo Set nivel= nivel + 1 WHERE user_name = ('" & My.Settings.user_name & "') AND password = ('" & My.Settings.user_password & "')"
你想要这样的东西,但这给了我一个错误:
Dim query As String = "UPDATE EmployeeInfo Set nivel,puntos= nivel + 1, puntos -200 WHERE user_name = ('" & My.Settings.user_name & "') AND password = ('" & My.Settings.user_password & "')"
答案 0 :(得分:0)
您的更新声明错误,我认为您正在寻找类似
的内容UPDATE EmployeeInfo
Set nivel = nivel + 1,
puntos= puntos -200
where ...