所有字段最好都用[] 括起来:

string sqlUpdate = "update UserInfo set [password] = '" + pass + "',[email] = '" + txt_email.Text + "',[realName] = '" + txt_realName.Text + "',[phone] = '" + txt_phone.Text + "' where [username] = '" + name + "';";

 

相关文章:

  • 2021-06-22
  • 2022-02-08
  • 2021-07-05
  • 2021-09-19
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-15
  • 2022-12-23
  • 2021-07-02
相关资源
相似解决方案