Insert, delete, and update data

The following optional purpose functions support the data-manipulation statements shown in the table.
Purpose function Statement
am_insert INSERT
am_delete DELETE
am_update UPDATE

If you do support insert, delete, and update transactions for data in extspaces, you might need to write and call routines for transaction management from the purpose functions that create transactions. The database server has no mechanism to roll back external data if an error prevents the database server from committing a complete set of transactions to the corresponding virtual table.

If you do not supply functions for am_insert, am_update, or am_delete, or you do not set the appropriate purpose flags, the database server cannot process the corresponding SQL statement and issues an error.