Login ProductsSalesSupportDownloadsAbout |
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 Thursday, November 16, 2023 at 10:39 AM | Privacy PolicySite Map © 2025 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |