SQLCODE status value
Each SQLSTATE value also has an associated status code that is specific to HCL Informix®. The database server saves this status code in the SQLCODE status variable. The SQLCODE variable is an integer that indicates whether the SQL statement succeeded or failed.
When the database server executes an SQL statement, the database
server automatically updates the SQLCODE variable. After an
SQL statement executes, the SQLCODE variable can indicate one
of the status conditions that the following table shows.
Status condition | SQLCODE value |
---|---|
Success | 0 |
Success, but no rows found | 100 |
Success, but warnings generated | not available directly from SQLCODE |
Failure, runtime error generated | < 0 |