1 / 10

Overview of PL/SQL

Overview of PL/SQL. Oracle Complete Solution. Web-based applications. Multitier applications. Applications HR Financials Manufacturing. Oracle Developer. Oracle Discoverer. Oracle Designer. SQL* Plus. SQL. PL/SQL. Oracle Database. Data dictionary. Data tables.

mcghees
Download Presentation

Overview of PL/SQL

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Overview of PL/SQL

  2. Oracle Complete Solution Web-based applications Multitier applications Applications HR Financials Manufacturing ... Oracle Developer Oracle Discoverer Oracle Designer SQL* Plus SQL PL/SQL Oracle Database Data dictionary Data tables

  3. PL/SQL Program Constructs Stored procedure/function Anonymousblock DECLARE BEGIN Applicationprocedure/function Applicationtrigger EXCEPTION END; Databasetrigger Package Object type

  4. Block Structure for Anonymous PL/SQL Blocks DECLARE (optional) Declare PL/SQL objects to be used within this block BEGIN (mandatory) Define the executable statements EXCEPTION (optional) Define the actions that take place if an error arises END; (mandatory)

  5. Block Structure for PL/SQL Subprograms Header IS|AS Declaration section BEGIN Executable section EXCEPTION (optional) Exception section END;

  6. Benefits of Subprograms • Improved maintenance • Improved data security and integrity • Improved performance

  7. Development Environments • SQL*Plus uses the PL/SQL engine in the Oracle Server • Procedure Builder uses the PL/SQL engine in the client tool or in the Oracle Server

  8. Developing Procedures and Functions Using SQL*Plus

  9. Developing Procedures and Functions Using Oracle Procedure Builder

  10. Summary In this lesson, you should have learned that: • Anonymous blocks are unnamed PL/SQL blocks • Subprograms are named PL/SQL blocks, declared as either procedures or functions • There are two main PL/SQL development environments: • SQL*Plus • Procedure Builder

More Related