access数据库操作错误,但是我觉得没有错误啊
请教一下各位高手:这段更新数据库的代码编译没问题,但运行时.net提示错误“异常详细信息: system.Data.OleDb.OleDbException: UPDATE 语句的语法错误。
”。我觉得update操作没问题啊,而且我在access和sql server中都运行过这条更新语句,都能正确执行啊!
updateStr=string.Format("update tableUser set password='{0}' where
userName='{1}';",this.password,this.userName);
updateCommand=new System.Data.OleDb.OleDbCommand(updateStr,this.oleDbConnection1);
this.oleDbConnection1.Open();
updateCommand.ExecuteNonQuery();
究竟什么问题呢?