Appendix B. SQLSTATE Return Codes
This appendix contains a numeric listing of the SQLSTATE return codes specified in the SQL standard (Table B-1). SQLSTATE is a five-character string. The leftmost two characters represent the error class; the rightmost three characters represent the subclass. Because SQLSTATE is a string, an embedded SQL program will need to use a substring function if it needs to separate the two parts of the code.
Table B-1 SQLSTATE return codes
ClassClass definitionSubclassSubclass definition
00Successful completion000None
01Warning000None
001Cursor operation conflict
002Disconnect error
003Null value eliminated in set function
004String data, right truncation
005Insufficient item descriptor area
006Privilege not revoked
007Privilege ...

Get SQL Clearly Explained, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.