Define a cursor type
The mi_open_prepared_statement() function
supports the following types of cursors for holding query rows.
- Sequential cursor
- Enables you to move through the rows of the cursor in the forward
direction only
You can pass only once through the rows.
- Scroll cursor
- Enables you to move through the rows of the cursor in the forward
and backward directions
You can move back in the rows without having to reopen the cursor; however, the database server stores the data for a scroll cursor in a temporary table. The data can become stale; that is, the data in the cursor is consistent with the data in the database when the cursor is filled, but if the data in the database changes, the data in the cursor does not reflect these changes.
Control-flag values for cursor type and mode shows the control-flag values that determine cursor type and cursor mode.