JetUpdate 函式會執行更新作業,包括將新資料列插入資料表或更新現有的資料列。 刪除資料表資料列是藉由呼叫 JetDelete (JET_SESID 來執行,JET_TABLEID) 。
Namespace:Microsoft.Isam.Esent.Interop.Server2003
裝配: microsoft.Isam.Esent.Interop (in Microsoft.Isam.Esent.Interop.dll)
語法
'Declaration
Public Shared Sub JetUpdate2 ( _
sesid As JET_SESID, _
tableid As JET_TABLEID, _
bookmark As Byte(), _
bookmarkSize As Integer, _
<OutAttribute> ByRef actualBookmarkSize As Integer, _
grbit As UpdateGrbit _
)
'Usage
Dim sesid As JET_SESID
Dim tableid As JET_TABLEID
Dim bookmark As Byte()
Dim bookmarkSize As Integer
Dim actualBookmarkSize As Integer
Dim grbit As UpdateGrbitServer2003Api.JetUpdate2(sesid, tableid, bookmark, _
bookmarkSize, actualBookmarkSize, _
grbit)
public static void JetUpdate2(
JET_SESID sesid,
JET_TABLEID tableid,
byte[] bookmark,
int bookmarkSize,
out int actualBookmarkSize,
UpdateGrbit grbit
)
參數
sesid
類型: Microsoft.Isam.Esent.Interop.JET_SESID啟動更新的會話。
tableid
類型: Microsoft.Isam.Esent.Interop.JET_TABLEID要更新的資料指標。 應該準備更新。
書籤 (bookmark)
類型: []傳回已更新記錄的書簽。 這個可以是 null。
bookmarkSize
類型: System.Int32書簽緩衝區的大小。
actualBookmarkSize
類型: System.Int32傳回書簽的實際大小。
grbit
類型: Microsoft.Isam.Esent.Interop.Server2003.UpdateGrbit更新選項。
備註
JetUpdate 是執行插入或更新的最後一個步驟。 更新是從呼叫 JetPrepareUpdate (JET_SESID、JET_TABLEID、JET_prep) ,然後藉由呼叫 JetSetColumn (JET_SESID、JET_TABLEID、JET_COLUMNID、[]、Int32、SetColumnGrbit JET_SETINFO) 一或多次來設定記錄狀態來開始更新。 最後,會呼叫 JetUpdate2 (JET_SESID、JET_TABLEID、[]、Int32、Int32、UpdateGrbit) 來完成更新作業。 只有在 JetUpdate 或 JetSetColumn 期間才會更新索引。