get autoNumber value from database

后端 未结 2 1313
不知归路
不知归路 2021-01-22 17:27

The code is below. in my code I updating existing row(from existing table) that the program get all the updated values from textBoxes. there is at the end(the last column)of the

2条回答
  •  我在风中等你
    2021-01-22 18:25

    see this:

    http://msdn.microsoft.com/en-us/library/ks9f57t0(v=VS.80).aspx

    See the section labeled "Retrieving Microsoft Access Autonumber Values"

    sort version

    OleDbCommand cmdNewID = new OleDbCommand("SELECT @@IDENTITY",
                connection)
    

    I do not believe SCOPE_IDENTITY() exist in access

提交回复
热议问题