SQL PL: Difference between revisions

Content deleted Content added
as I suspected, the Similar languages section was just copied from the PL/SQL article (it's better to just link to it in the See also section); addition of Raima RDM seems to be WP:PROMO
Undid "merge" by बिनोद थारू (talk). No content from this page was ever added to the supposed target page. Back door deletion?
Tags: Removed redirect Undo
 
(15 intermediate revisions by 7 users not shown)
Line 1:
{{multiple issues|
{{Primary sources|date=November 2009}}
{{Notability|date=November 2009}}
}}
 
'''SQL PL''' stands for [[SQL|Structured Query Language]] Procedural Language and was developed by IBM as a set of commands that extend the use of SQL in the [[IBM DB2Db2]] (DB2 UDB Version 7) database system.<ref>[httphttps://publib.boulderwww.ibm.com/infocentersupport/db2luwknowledgecenter/v9en/indexSSEPGG_11.jsp?topic=1.0/com.ibm.db2.udbluw.apdv.sqlsqlpl.doc/doc/c0011916.htmhtml IBM InfoKnowledge Center]</ref> It provides [[procedural programming|procedural programmability]] in addition to the querying commands of SQL. It is a subset of the SQL Persistent Stored Modules ([[SQL/PSM]]) language standard. PL/SQL includes procedural language elements such as conditions and loops. It allows declaration of constants and variables, procedures and functions, types and variables of those types, and triggers. It can handle exceptions (runtime errors). Arrays are supported involving the use of PL/SQL collections. One can create PL/SQL units such as procedures, functions, packages, types, and triggers, which are stored in the database for reuse by applications that use any of the Oracle Database programmatic interfaces.{{cn}}
 
As of DB2 version 9, SQL PL [[stored procedure]]s can run natively inside the DB2 process (inside the DBM1 address space, more precisely) instead of being fenced in an external process.<ref name="Mullins2012">{{cite book|author=Craig S. Mullins|title=DB2 Developer's Guide: A Solutions-Oriented Approach to Learning the Foundation and Capabilities of DB2 for z/OS|year=2012|publisher=IBM Press|isbn=978-0-13-283644-9|edition=6th|page=658}}</ref> 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.<ref>{{cite web|author=Serge Rielau |url=http://www.ibm.com/developerworks/data/library/techarticle/dm-0907oracleappsondb2/index.html |title=DB2 10: Run Oracle applications on DB2 10 for Linux, UNIX, and Windows |publisher=Ibm.com |date= |accessdate=2012-07-26}}</ref>
 
==See also==
* [[PL/SQLIBM Db2]]
* [[Comparison of relational database management systems]]
 
==References==
Line 15 ⟶ 13:
 
== External links ==
* [http://www.rosettacode.org/wiki/Category:SQL_PL Examples in Rosetta Code]
*[http://www.sqlpl-guide.com SQL PL Guide for developing Stored Procedures in DB2]
 
== Software in SQL-PL ==
* [https://angoca.github.io/log4db2/ log4db2]: A logging framework written in SQL-PL for IBM DB2 LUW
* [https://github.com/angoca/db2unit db2unit]: a testing framework for the SQL-PL language
 
{{DEFAULTSORT:Sql Pl}}
 
{{IBM Db2 product family}}
 
[[Category:SQL]]
[[Category:IBM software]]
[[Category:IBM DB2]]