PL_SQL PL_SQL

PL SQL - Definition and Overview

PL/SQL (Procedural Language/Structured Query Language) is Oracle Corporation's proprietary server-based extension to the SQL database language, and emulates the Ada programming language.

Since SQL functions as a declarative language, and unlike some functional programming languages the standard does not require implementations to convert tail calls to jumps or readily provide "first row" and "rest of table" accessors, SQL cannot easily perform some constructs such as loops. PL/SQL, however, as a Turing-complete procedural language which fills in these gaps, allows Oracle database developers to interface with the underlying relational database in an imperative manner. SQL statements can make explicit in-line calls to PL/SQL functions, or can cause PL/SQL triggers to fire upon pre-defined DML events.

PL/SQL functions analogously to the embedded procedural languages for other relational databases. Sybase and its derivative Microsoft SQL Server have Transact-SQL, PostgreSQL has PL/pgSQL (which tries to emulate PL/SQL to an extent), and Oracle can also use methods written in Java. Aside from some proprietary functions (notably Oracle's UTL_FILE package) PL/SQL code closely resembles Transact-SQL, allowing trivial conversion if the code does not use proprietary features.

References

  • Steven Feuerstein (2002). Oracle PL/SQL Programming, 3rd ed. O'Reilly & Associates. ISBN 0596003811.
    (Many consider this book the "bible" of PL/SQL development)
  • Oracle PL/SQL FAQ (http://www.orafaq.com/faqplsql.htm)


Example Usage of SQL

SyracuseITJobs: We're looking for a SQL Oracle Developer! Know any? Email us in confidence at katd@issitechpros.com! #jobs
jobssearchx: SQL and OLAP Developer Job in Phoenix 85021, Arizona US http://bit.ly/8R6tzT #jobs #job #hiring
infotectravel1: #ITTNews : Query Active Directory Data from SQL Server using T-SQL - Database Journal http://bit.ly/5gxCUC
Copyright 2009 WordIQ.com - Privacy Policy  :: Terms of Use  :: Contact Us  :: About Us
This article is licensed under the GNU Free Documentation License. It uses material from the this Wikipedia article.