SQLSTATE special value

SQLSTATE indicates whether the most recently executed SQL statement resulted in a success, error, or warning condition.

 Data type
 Remarks
 See also
 Standards and compatibility