April 2007
Intermediate to advanced
1032 pages
19h 28m
English
This chapter covers the procedural database object called the stored procedure or database procedure. We start by giving its definition:
A stored procedure is a certain piece of code (the procedure) consisting of declarative and procedural SQL statements stored in the catalog of a database that can be activated by calling it from a program, a trigger, or another stored procedure.
Thus, a stored procedure is a piece of code. This code can consist of declarative SQL statements, such as CREATE, UPDATE, and SELECT, possibly complemented with procedural statements, such as IF-THEN-ELSE and WHILE-DO. The code from which a stored procedure is built is, therefore, not a part of a program, but is stored ...
Read now
Unlock full access