User Tools

Site Tools


Sidebar

**HPL/SQL is included to Apache Hive since version 2.0** * [[home|Home]]\\ * [[why|Why HPL/SQL]]\\ * [[features|Key Features]]\\ * [[start|Get Started]]\\ * [[doc|HPL/SQL Reference]]\\ * [[download|Download]]\\ * [[new|What's New]]\\ * [[about|About]]

sqlstate

This is an old revision of the document!


A PCRE internal error occured. This might be caused by a faulty plugin

====== SQLSTATE - PL/HQL Reference ====== SQLSTATE built-in variable contains a 5-character return status of the last SQL statement. SQLSTATE status code consists of a 2-character class code followed by a 3-character subclass code. Class code 00 (SQLSTATE '00000' i.e.) means the successful completion. **Example:** <code language=sql> SET plhql.onerror = seterror; -- Prevent raising an exception SELECT 1 FROM abc.abc; PRINT SQLSTATE; </code> **Compatibility:** IBM DB2. **Version:** PL/HQL 0.03 **See also:** * [[error-handling|Error Handling]] * [[sqlcode|SQLCODE]] * [[get-diagnostics|GET DIAGNOSTICS]] * [[resignal|RESIGNAL]]