Archive for July, 2008

Using OUT parameters in SQL procedures called from Java to return multiple result values

Friday, July 4th, 2008

Using stored procedures and functions when working with the database server has a number of advantages: it allows to abstract and externalize the implementation of certain data-crunching algorithms, may sometimes simplify the transaction processing and may reduce the overhead caused by the complex operation since there is less data to convert/serialize. It may also make [...]

Using custom exceptions in Oracle PL/SQL

Thursday, July 3rd, 2008

Exception handling mechanism is a very important feature of PL/SQL. In most of the cases it is much simpler to just attempt an operation and properly handle the expected failure rather than to check for the conditions before attempting an operation. For example: it is much easier to unconditionally attempt to drop a table and [...]