Query: db2_stmt_errormsg
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
DB2_STMT_ERRORMSG(3) 1 DB2_STMT_ERRORMSG(3) db2_stmt_errormsg - Returns a string containing the last SQL statement error messageSYNOPSISstring db2_stmt_errormsg ([resource $stmt])DESCRIPTIONReturns 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).PARAMETERSo $stmt - A valid statement resource.RETURN VALUESReturns a string containing the error message and SQLCODE value for the last error that occurred issuing an SQL statement.SEE ALSOdb2_conn_error(3), db2_conn_errormsg(3), db2_stmt_error(3). PHP Documentation Group DB2_STMT_ERRORMSG(3)