![]() | ![]() Products ![]() ![]() ![]() ![]() |
Home » Technical Support » ElevateDB Technical Support » Product Manuals » ElevateDB Version 2 SQL Manual » SQL/PSM Statements » FINALLY |
[Label:] BEGIN [<Statement>;] [<Statement>;] FINALLY [<Statement>;] END [Label];
-- This procedure uses a FINALLY -- block to make sure that the file opened -- using the OpenFile() external function -- is closed using the CloseFile() external -- function CREATE FUNCTION ReadTextFile(IN TextFileName VARCHAR) RETURNS VARCHAR BEGIN DECLARE FileHandle INTEGER DEFAULT 0; DECLARE Result VARCHAR DEFAULT ''; SET FileHandle=OpenFile(TextFileName); BEGIN SET Result=ReadFile(FileHandle); FINALLY CloseFile(FileHandle); END; END
Deviation | Details |
Extension | This SQL statement 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 ? ![]() |