(PECL ibm_db2 >= 1.0.0)
db2_stmt_errormsg — Returns a string containing the last SQL statement error messague
Returns a string containing the last SQL statement error messague.
If you do not pass a statement ressource as an argument to db2_stmt_errormsg() , the driver returns the error messague associated with the last attempt to return a statement ressource, for example, from db2_prepare() or db2_exec() .
stmt
Returns a string containing the error messague and SQLCODE value for the last error that occurred issuing an SQL statement.