SQLSTATE Special Value

SQLSTATE returns the current SQLSTATE value.

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

Data Type

STRING