数据库更新问题

zz124 2003-07-17 03:54:12
在C#中,如何使用OLEDB的方式更改数据库纪录,我写的SQL语句如下:
this.m_UpdateCmd.CommandType = System.Data.CommandType.Text;
this.m_UpdateCmd.CommandText = "Update UserList set vcPassWord=@vcPassWord,vcName = @vcName,vcLevel=@vcLevel where vcUserID=@vcUserID";
this.m_UpdateCmd.Parameters.Add(
new System.Data.OleDb.OleDbParameter("@vcUserID",System.Data.OleDb.OleDbType.VarChar,255,"用户编号"));
this.m_UpdateCmd.Parameters.Add(
new System.Data.OleDb.OleDbParameter("@vcPassword",System.Data.OleDb.OleDbType.VarChar,255,"密码"));
this.m_UpdateCmd.Parameters.Add(
new System.Data.OleDb.OleDbParameter("@vcName",System.Data.OleDb.OleDbType.VarChar,255,"姓名"));
this.m_UpdateCmd.Parameters.Add(
new System.Data.OleDb.OleDbParameter("@vcLevel",System.Data.OleDb.OleDbType.VarChar,255,"权限"));
总提示:并发冲突 UpdateCOmmand 影响0个纪录。。
添加和删除都正确,就是队每个表更新都报上述错误,请各位大虾多多指教
...全文
63 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
wyd124 2003-10-01
  • 打赏
  • 举报
回复
查帮助。。。
panyee 2003-07-17
  • 打赏
  • 举报
回复
没那条记录?

111,093

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • AIGC Browser
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧