Data Management Mosaic imagery
DB2 Database for Linux, UNIX, and Windows
Version 9.1
DB2 Connect for Linux, UNIX, and Windows
Version 9.1
IBM

Programming features for DB2 database system

Your DB2 database system comes with a variety of programming features, such as routines that run on the database server, which you can use to 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 and UDFs are programs that execute on the DB2 database server and that can be called by client application programs. Both stored procedures and UDFs can be used to increase application performance, to improve developer productivity, and to promote code reuse.

You can create stored procedures and user-defined functions using the DB2 Developer Workbench or the Command Line Processor (CLP).

Stored procedures

User-defined functions