DB2_STMT_ERRORMSG(3) 1 DB2_STMT_ERRORMSG(3)
db2_stmt_errormsg - Returns a string containing the last SQL statement error message
SYNOPSIS
string db2_stmt_errormsg ([resource $stmt])
DESCRIPTION
Returns a string containing the last SQL statement error message.
If you do not pass a statement resource as an argument to db2_stmt_errormsg(3), the driver returns the error message associated with the
last attempt to return a statement resource, for example, from db2_prepare(3) or db2_exec(3).
PARAMETERS
o $stmt
- A valid statement resource.
RETURN VALUES
Returns a string containing the error message and SQLCODE value for the last error that occurred issuing an SQL statement.
SEE ALSO
db2_conn_error(3), db2_conn_errormsg(3), db2_stmt_error(3).
PHP Documentation Group DB2_STMT_ERRORMSG(3)