db2_cursor_type()
db2_cursor_type - Returns the cursor type used by a statement resource
Syntax
int db2_cursor_type (
resource $stmt)
Arguments
- stmt - A valid statement resource.
Description
Returns the cursor type used by a statement resource. Use this to determine if you are working with a forward-only cursor or scrollable cursor.
Version
PHP PECL ibm_db2 >= 1.0.0
Return value
Returns either DB2_FORWARD_ONLYif the statement resource uses a forward-only cursor or DB2_SCROLLABLEif the statement resource uses a scrollable cursor.