PL/SQL

2 Day Course
Hands On
Code OPI

Book Now - 2 Delivery Methods Available:

Scheduled Online Onsite

This course is designed to introduce Oracle DBAs, software development personnel and database support staff to the primary features and constructs of the PL/SQL Programming Language and enhance their productivity in manipulating data.

The delegates will practise:

  • Writing and running PL/SQL programs from SQL*Plus or SQL Developer
  • Declaring and using variables and constants
  • Assigning and manipulating values
  • Using SQL statements within PL/SQL
  • Implementing conditional execution and loop constructs
  • Declaring and using cursors with and without parameters
  • Updating data with cursors
  • Trapping and handling errors and exceptions in code
  • Implementing nested and labelled loops and blocks
  • Raising exceptions
  • Handling PL/SQL records and tables
  • Using PL/SQL table built-in functions

PL/SQL Fundamentals (7 topics)

  • What is PL/SQL?
  • Basic Elements
  • Variables and Constants
  • Data Types
  • Initialising Variables and Assigning Values
  • Using SQL Statements in Code
  • Generating Output to SQL or SQL Developer

Program Logic (7 topics)

  • IF THEN ELSIF ELSE Statements
  • CASE Statements
  • The Basic Loop Construct
  • WHILE and FOR Loops
  • Nested and Labelled Loops
  • The GOTO Statement
  • The CONTINUE Statement

Using Cursors (9 topics)

  • What is a Cursor?
  • Implicit and Explicit Cursors
  • Cursor Operations
  • Declaring, Opening and Closing Cursors
  • Fetching Rows
  • Status Checking
  • Using Cursors FOR UPDATE
  • The Cursor FOR Loop
  • Parameterised Cursors

Exceptions and Nested Blocks (10 topics)

  • The EXCEPTION Section
  • Types of Exception
  • Handling Named System-Raised Exceptions
  • Handling Un-named System-Raised Exceptions
  • User-Declared Exceptions and Application Errors
  • WHEN OTHERS THEN NULL
  • Nested and Labelled Blocks
  • Propagation of Exceptions
  • Scope of Variables and Cursors
  • Scope of Goto Statements

PL/SQL Records and Index-By Tables (6 topics)

  • Declaring Record Types
  • Handling PL/SQL Records
  • Nested Records
  • Declaring PL/SQL Index-By Tables or Associative Arrays
  • PL/SQL Table Built-in Functions
  • Manipulating PL/SQL Tables or Associative Arrays
A working knowledge of SQL*Plus. This can be gained by attendance on SQL*Plus (OSP). Some previous programming experience would prove advantageous.

Additional Learning

The courses below may help you meet the knowledge level required to take this course. If you are unsure please ask a training advisor

  • Oracle SQL

    The SQL training course is designed for anyone who needs to access and work with an Oracle Database

    course code OSP 20 Classroom dates 6 locations
CodeLocationDurationPrice Jul Aug Sep Oct Nov Dec
OPI
Birmingham
2 Days $1,275
OPI
Bristol
2 Days $1,275
OPI
Edinburgh
2 Days $1,275
OPI
Leeds
2 Days $1,275
OPI
London
2 Days $1,275
OPI
Manchester
2 Days $1,275
OPI
Sunderland
2 Days $1,275
24-25
Ask a Question

or call:408-759-5074

Course PDF

Print

Share this Course

+1
Share

Recommend this Course