Home > PHP > Function > > db2_stmt_errormsg()

db2_stmt_errormsg()

db2_stmt_errormsg - Returns a string containing the last SQL statement error message

Syntax

string db2_stmt_errormsg (resource $stmt)

Arguments

  • stmt - A valid statement resource.

Description

Returns a string containing the last SQL statement error message.

Version

PHP PECL ibm_db2 >= 1.0.0

Return value

Returns a string containing the error message and SQLCODE value for the last error that occurred issuing an SQL statement.