Getting primary key after an insert in asp.net (visual basic)

前端 未结 5 779
野的像风
野的像风 2021-01-15 00:39

I\'m adding a record like this:

    Dim pathString As String = HttpContext.Current.Request.MapPath(\"Banking.mdb\")
    Dim odbconBanking As New OleDbConnect         


        
5条回答
  •  孤城傲影
    2021-01-15 01:19

    "SELECT @@IDENTITY" just after the insertion should work with Microsoft.Jet Provider.

提交回复
热议问题