试图制作一个"忘记密码表".
一遍又一遍地得到同样的错误.需要你的帮助.
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''' at line 1
这是我的代码.
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
Dim con As New MySqlConnection("host=localhost; username=root; database= login")
Dim cmd As New MySqlCommand
Dim dr As MySqlDataReader
con.Open()
cmd.Connection = con
cmd.CommandText = "select 'from users where userID= ' " & userTxt.Text & " ' and secretQ …Run Code Online (Sandbox Code Playgroud)