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

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

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

 

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

上一篇:PHP实现对mysql数据库内容分页显示


下一篇:SQL*Plus中替换变量与定义变量