DB2 Database for Linux, UNIX, and Windows
DB2 Connect for Linux, UNIX, and Windows
Version 9.5
IBM

Programming features for DB2 database systems

Your DB2 database system comes with a variety of programming features, such as routines that run on the database server, that can supplement or extend your applications. A routine is a database object that encapsulates programming and database logic related to a specific task. There are three types of routines: stored procedures, user-defined functions (UDFs), and methods.

Stored procedures, UDFs, and methods are programs that run on the database server and that can be called by client application programs. All three routine types can increase application performance, improve developer productivity, and promote code reuse.

You can create stored procedures and user-defined functions using IBM Data Studio or the Command Line Processor (CLP).

Stored procedures

User-defined functions

Methods