OleDbCommand.ExecuteNonQuery() does not save changes in ms access database

后端 未结 2 1698
清歌不尽
清歌不尽 2020-12-11 12:23

I have .mdb database, and code like this:

using (OleDbConnection connection = new OleDbConnection(myConnectionString))
{
    using (OleDbCommand         


        
2条回答
  •  囚心锁ツ
    2020-12-11 13:25

    It is most likely the WHERE clause of your update statement isn't locating any records to update.

    http://weblogs.asp.net/stevewellens/archive/2009/10/16/why-sql-updates-fail-three-reasons.aspx

提交回复
热议问题