您的位置:首页 > 博客中心 > 数据库 >

C#语句对Access中数据更新问题――Update语法错误

时间:2022-03-13 23:40

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

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

 

热门排行

今日推荐

热门手游