SQLCODE special value

Current SQLCODE value at the time the special value was evaluated.

Data type

String

Remarks

The SQLCODE value is set after each statement. You can check the SQLCODE to see whether or not the statement succeeded.

See also
Example

Use a SELECT statement to produce an error code for each attempt to fetch a new row from the result set. For example: SELECT a, b, SQLCODE FROM MyTable.