Skip to Content
Oracle Database 10g: A Beginner's Guide
book

Oracle Database 10g: A Beginner's Guide

by Ian Abramson, Michael Abbey, Michael Corey
April 2004
Beginner to intermediate
416 pages
10h 8m
English
McGraw Hill Computing
Content preview from Oracle Database 10g: A Beginner's Guide

CRITICAL SKILL 6.2

Describe the Basic PL/SQL Program Structure

The structure we use in PL/SQL is the foundation for all of the language. Once you’ve mastered it, you will then be able to move forward; however, if you do not take the time to get this first step right, your journey will be difficult. Thankfully, it’s quite simple.

The structure is quite basic. You will have areas for your program parameters (these are used to pass values from outside a program to the program itself), your internal variables, the main program code and logic, and various ways to deal with problem situations. Let’s look at the basic form of a PL/SQL block:

 [DECLARE]
    -- Put Variables Here
BEGIN
    -- Put Program Here
[EXCEPTION]
    -- Put exception handlers here
END;
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Oracle Database 11g A Beginner's Guide

Oracle Database 11g A Beginner's Guide

Ian Abramson, Michael Abbey, Michael Corey
Oracle Database 10g DBA Handbook

Oracle Database 10g DBA Handbook

Kevin Loney, Bob Bryla

Publisher Resources

ISBN: 9780072230789