Introduction to PL/SQL
Duration
Three Days
Description
The Oracle PL/SQL language provides for programming logic features not contained within SQL. The grammar, syntax and benefits of using the PL/SQL language within an Oracle database environment are considered.
Objectives Of This Course
The primary objective of this course is to provide an introduction to the PL/SQL database programming language. Major subject areas to be explored are:
- Understand the environment and context in which PL/SQL operates.
- Consider the advantages and benefits of PL/SQL within a database environment.
- Declaring program variables and complex data types.
- Developing logic within PL/SQL program blocks.
- Fetching data from the database into program variables.
- Returning program output to users.
- Handling program exceptions.
- Using explicit and implicit database cursors.
- Using the advanced features of nested blocks and subprograms.
- How to take advantage of new features such as regular expression support and handling of string literals.
Audience
Target audience for this course is all Oracle professionals. Among the specific groups for whom this course will be helpful are:
- Application designers and developers.
- Database administrators.
Course Outline
Language Features
- Understanding PL/SQL
- Structure of a PL/SQL Program Block
- PL/SQL from Interactive Tools
- Generating Output within SQL*Plus
Declare Clause
- About the Declare Clause
- Declare Simple Types
- Complex Types
Begin Clause
- About the Begin Clause
- Performing Data Manipulation
- Logic Control & Branching
Exception Clause
- About the Exception Clause
- Isolating the Specific Exception
Explicit Cursors
- About Explicit Cursors
- Advanced Cursor Techniques
Advanced Programming: Nested Blocks
- About the Advanced Features
- Using Nested Blocks
Advanced Programming: Declared Subprograms