C# ACCESS 修改表记录提示"UPDATE 语句语法错"问题
错误的sql 语句如下:
sqlStr = "update tb_userInfo set passWord='" + pw + "' where userName='" + un + "'"; //错误的 sql 语句
正确的sql 语句如下:
sqlStr = "update tb_userInfo set [passWord]='" + pw + "' where userName='" + un + "'"; //正确的 sql 语句
错误原因:password或passWord 是关键字,必须加方括号 [password] 或 [passWord]
whatever is worth doing is worth doing well...