![]() | Products |
| Home » Technical Support » ElevateDB Technical Support » Product Manuals » ElevateDB Version 2 SQL Manual » SQL/PSM Functions » ERRORCODE |
ERRORCODE()
INTEGER
-- This procedure uses an exception
-- block to handle any exceptions while
-- executing a CREATE TABLE statement
CREATE PROCEDURE CreateTestTable()
BEGIN
DECLARE stmt STATEMENT;
PREPARE stmt FROM 'CREATE TEMPORARY TABLE "TestTable"
(
"FirstColumn" INTEGER,
"SecondColumn" VARCHAR(30),
"ThirdColumn" CLOB,
PRIMARY KEY ("FirstColumn")
)
DESCRIPTION ''Test Table''';
EXECUTE stmt;
EXCEPTION
IF ERRORCODE()=700 THEN
RAISE ERROR CODE 10000 MESSAGE 'Syntax error';
ELSE
RAISE ERROR CODE 10000 MESSAGE 'Unexpected error - ' +
ERRORMSG();
END IF;
END| Deviation | Details |
| Extension | This function is an ElevateDB extension. |
This web page was last updated on Tuesday, September 16, 2025 at 04:56 PM | Privacy Policy © 2025 Elevate Software, Inc. All Rights Reserved Questions or comments ? |

