string str="update Users set PassWord='4566' where UserName='qqq'";
OleDbConnection conn=DB.createConnection();
OleDbCommand cmd=new OleDbCommand(str,conn);
cmd.ExecuteNonQuery();//执行成功
string str="update Users set UserTypeID=4 where UserName='qqq'";
OleDbConnection conn=DB.createConnection();
OleDbCommand cmd=new OleDbCommand(str,conn);
cmd.ExecuteNonQuery();//执行成功
string str="update Users set UserTypeID=4, PassWord='4566' where UserName='qqq'";
OleDbConnection conn=DB.createConnection();
OleDbCommand cmd=new OleDbCommand(str,conn);
cmd.ExecuteNonQuery();//执行失败 whiy ???
说明:Users表中就三个字段 UserName 主键 文本,PassWord 文本 UserTypeID 数字
[求助]C# SQL