DB2 10.5 for Linux, UNIX, and Windows

SQL Procedural Language (SQL PL)

The SQL Procedural Language (SQL PL) is a language extension of SQL that consists of statements and language elements that can be used to implement procedural logic in SQL statements.

SQL PL provides statements for declaring variables and condition handlers, assigning values to variables, and for implementing procedural logic.