Interstage Shunsaku Data Manager Application Development Guide - Microsoft(R) Windows(R) 2000/ Microsoft(R) Windows Server(TM) 2003 - - UNIX - |
Contents
Index
![]() ![]() |
Part 2 Developing Applications by APIs | > Chapter 11 Developing C Applications | > 11.2 How to Use C APIs | > 11.2.3 Updating Data |
Use the ShunDeleteRecId function to delete data.
The ShunDeleteRecId function uses record IDs (conductor control information and reply record identifiers) to delete data. Before executing the ShunDeleteRecId function, use the ShunSearch function to obtain the record IDs of the data to be deleted.
The following diagram shows the process for deleting data by specifying record IDs.
SHUNHSTMT StmtH; /* Create data manipulation handle */ ShunAllocHandle(ConH, &StmtH); (1) /* Use record ID to perform deletion */ ShunDeleteRecId(StmtH, 1, Rec_Id_In); (2) /* Release data manipulation handle */ ShunFreeHandle(StmtH); (3) |
Allocate the data manipulation handle in advance by specifying the connection handle to be used as the parent handle in the ShunAllocHandle function.
Perform the deletion process by specifying the data manipulation handle, the number of data items to be deleted, and the record IDs to be deleted in the ShunDeleteRecId function.
By specifying multiple record IDs with the ShunDeleteRecId function, multiple XML documents can be deleted at a time.
After data deletion is complete, use the ShunFreeHandle function to release the data manipulation handle.
Contents
Index
![]() ![]() |