On Emulating FINALLY

Thursday Feb 12th 2009 by DatabaseJournal.com Staff
Share:

Code PL/SQL to function like the Java FINALLY section.

[From OTN]

I just moved over from the Java world to PL/SQL. One thing I really miss from Java is the FINALLY section of a method. How can I get the same behavior out of PL/SQL?

Unlike Java, PL/SQL does not support a FINALLY section. You can, however, emulate much of what this section does, through careful and disciplined use of local subprograms.

The article continues at http://www.oracle.com/technology/oramag/oracle/09-jan/o19plsql.html

Share:
Home
Mobile Site | Full Site
Copyright 2017 © QuinStreet Inc. All Rights Reserved