Oracle® OLAP DML Reference 11g Release 2 (11.2) Part Number E17122-07 |
|
|
PDF · Mobi · ePub |
(Read-only) After the Database reports an error and SQLCODE has a nonzero value, the SQLERRM option usually contains text that explains the problem.
TEXT
SQLERRM
OLADM1396Oracle Relational Manager
You can set the SQLMESSAGES option to YES
to send the value of SQLERRM to the current output file automatically.
OLADM1397Example 5-102 Displaying Error Messages
The following statements attempt to create a table and check for error messages afterward.
SQL CREATE TABLE Products - (Prod_ID CHAR(8) - Prod_Name VARCHAR(30) - Suggested_Price DECIMAL(10,2)) IF SQLCODE NE 0 SHOW SQLERRM