db2_exec()
db2_exec - Executes an SQL statement directly
Syntax
resource db2_exec (
resource $connection,
string $statement,
array $options)
Arguments
- connection - A valid database connection resource variable as returned from db2_connect() or db2_pconnect().
- statement - An SQL statement. The statement cannot contain any parameter markers.
- options - An associative array containing statement options. You can use this parameter to request a scrollable cursor on database servers that support this functionality. For a description of valid statement options, see db2_set_option().
Description
Executes an SQL statement directly.
Version
PHP PECL ibm_db2 >= 1.0.0
Return value
Returns a statement resource if the SQL statement was issued successfully, or FALSE if the database failed to execute the SQL statement.