![]() | ![]() Products ![]() ![]() ![]() ![]() |
Home » Technical Support » ElevateDB Technical Support » Product Manuals » ElevateDB Version 2 SQL Manual » SQL/PSM Functions » ERRORMSG |
ERRORMSG()
VARCHAR
-- 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 Friday, January 31, 2025 at 08:42 AM | Privacy Policy![]() © 2025 Elevate Software, Inc. All Rights Reserved Questions or comments ? ![]() |