12.07.2015 Views

Oracle SQL Developer

Oracle SQL Developer

Oracle SQL Developer

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

7PL/<strong>SQL</strong>: Usage Information7.1 Overview of PL/<strong>SQL</strong>The topic discusses the development with PL/<strong>SQL</strong>. It includes the following topics:■ Overview of PL/<strong>SQL</strong> on page 7-1■ Entering and Executing PL/<strong>SQL</strong> Code on page 7-2■ Utilizing the Main Features of PL/<strong>SQL</strong> on page 7-2■ Handling PL/<strong>SQL</strong> Errors on page 7-21See Also:■■■■PL/<strong>SQL</strong> User's Guide and Reference for detailed information aboutPL/<strong>SQL</strong>.PL/<strong>SQL</strong> Packages and Types Reference for information on packagessupplied by <strong>Oracle</strong>.<strong>Oracle</strong> Database Application <strong>Developer</strong>'s Guide - Fundamentals forinformation on dynamic <strong>SQL</strong>.<strong>Oracle</strong> Database Application <strong>Developer</strong>'s Guide - Fundamentals forinformation on using PL/<strong>SQL</strong> to develop Web applications.PL/<strong>SQL</strong> is <strong>Oracle</strong>'s procedural language extension to <strong>SQL</strong>. It provides a server-side,stored procedural language that is easy-to-use, seamless with <strong>SQL</strong>, robust, portable,and secure.The PL/<strong>SQL</strong> compiler and interpreter are embedded in <strong>Oracle</strong> Database, providingdevelopers with a consistent and leveraged development model on both the client andthe server side. In addition, PL/<strong>SQL</strong> stored subprograms can be called from <strong>Oracle</strong>clients.PL/<strong>SQL</strong> enables you to mix <strong>SQL</strong> statements with procedural constructs. WithPL/<strong>SQL</strong>, you can create and run PL/<strong>SQL</strong> program units such as procedures,functions, and packages. PL/<strong>SQL</strong> program units generally are categorized asanonymous blocks, stored subprograms, and packages.The basic units (procedures, functions, and anonymous blocks) that make up aPL/<strong>SQL</strong> program can be nested inside one another.You can place declarations close to where they are used, such as inside a largesubprogram. The declarations are local to the block and cease to exist when the blockcompletes, helping to avoid cluttered namespaces for variables and procedures.PL/<strong>SQL</strong>: Usage Information 7-1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!