Jump to content

SQL PL

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by FredrikSande (talk | contribs) at 13:04, 15 March 2016. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

SQL PL stands for Structured Query Language Procedural Language and was developed by IBM as a set of commands that extend the use of SQL in the IBM DB2 (DB2 UDB Version 7) database system.[1] It provides procedural programmability in addition to the querying commands of SQL. It is a subset of the SQL Persistent Stored Modules (SQL/PSM) language standard.

IBM DB2

As of DB2 version 9, SQL PL stored procedures can run natively inside the DB2 process (inside the DBM1 address space, more precisely) instead of being fenced in an external process.[2] In DB2 version 9.7 IBM also added a PL/SQL front-end to this infrastructure (called "SQL Unified Runtime Engine"), meaning that procedural SQL using either the ISO standard or Oracle's syntax compile to bytecode running on the same engine in DB2.[3]

Raima RDM 14.0

The RDM SQL Programming Language (SQL PL) is based on the ANSI/ISO SQL Persistent Stored Modules (PSM) specification (ISO/IEC 90756-4:2008). It provides a high-level language in which stored procedures and functions can be easily written, compiled and called within the RDM SQL system. In earlier versions of RDM SQL, except for a rudimentary stored procedure capability, all such programming needed to be done through a standard programming language API such as either the native RDM SQL API or ODBC for C/C++ or JDBC for Java programs.[4]

References

  1. ^ IBM Info Center
  2. ^ Craig S. Mullins (2012). DB2 Developer's Guide: A Solutions-Oriented Approach to Learning the Foundation and Capabilities of DB2 for z/OS (6th ed.). IBM Press. p. 658. ISBN 978-0-13-283644-9.
  3. ^ Serge Rielau. "DB2 10: Run Oracle applications on DB2 10 for Linux, UNIX, and Windows". Ibm.com. Retrieved 2012-07-26.
  4. ^ "Raima Technical Whitepaper (RDM 14.0)".

Software in SQL-PL

  • log4db2: A logging framework written in SQL-PL for IBM DB2 LUW
  • db2unit: a testing framework for the SQL-PL language