db2_cursor_type

(PECL ibm_db2 >= 1.0.0)

db2_cursor_type Returns the cursor type used by a statement resource

说明

db2_cursor_type ( resource $stmt ) : int

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.

参数

stmt

A valid statement resource.

返回值

Returns either DB2_FORWARD_ONLY if the statement resource uses a forward-only cursor or DB2_SCROLLABLE if the statement resource uses a scrollable cursor.

参见

相关文章
php ibm db2 函数 returns or sets the autocommit state for a database connectionphp ibm db2 函数 binds a php variable to an sql statement parameterphp ibm db2 函数 returns an object with properties that describe the db2 database clientphp ibm db2 函数 returns a result set listing the columns and associated privileges for a tablephp ibm db2 函数 returns a result set listing the columns and associated metadata for a tablephp ibm db2 函数 returns the cursor type used by a statement resourcephp ibm db2 函数 returns an array indexed by both column name and position representing a row in a result setphp ibm db2 函数 returns an object with properties representing columns in the fetched rowphp ibm db2 函数 returns the maximum number of bytes required to display a columnphp ibm db2 函数 returns the name of the column in the result setphp ibm db2 函数 returns the data type of the indicated column in a result setphp ibm db2 函数 frees resources associated with the indicated statement resourcephp ibm db2 函数 retrieves an option value for a statement resource or a connection resourcephp ibm db2 函数 returns the number of fields contained in a result setphp ibm db2 函数 returns the number of rows affected by an sql statementphp ibm db2 函数 returns a persistent connection to a databasephp ibm db2 函数 returns a string containing the sqlstate returned by an sql statementphp ibm db2 函数 returns a string containing the last sql statement error messagephp ibm db2 函数 returns a result set listing the tables and associated privileges in a databasephp ibm db2 函数 returns a result set listing the tables and associated metadata in a database
关注编程学问公众号