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

Supported programming languages for DB2 database systems

DB2 database systems support several programming languages for developing applications that can manage or access databases. Some of these programming languages are:

C/C++ - DB2 Call Level Interface (CLI) and ODBC
DB2(R) CLI is a dynamic SQL programming interface for creating C/C++ applications that access DB2 databases. DB2 CLI is based on the X/Open Call Level Interface standard and it is compatible with the Microsoft(R) Open Database Connectivity (ODBC) specification for C applications. DB2 stored procedures and functions can be developed using DB2 CLI.
Link representing a link to Information Center DB2 Call Level Interface (CLI) and ODBC

C/C++ - Embedded SQL
DB2 applications developed using the C/C++ programming languages can use embedded SQL techniques to create applications using static and dynamic SQL statements. DB2 stored procedures and functions can be developed using embedded SQL.
Link representing a link to Information Center Embedded SQL statements in C and C++ applications

Java - Java Database Connectivity (JDBC)
JDBC provides a standard set of interfaces and classes for accessing databases from Java applications using SQL. The JDBC driver provided with DB2 database system is optimized for the DB2 family of servers, is JDBC 3.0 compliant, and supports Type 4 and Type 2 modes. DB2 stored procedures and functions can be developed using JDBC.
Link representing a link to Information Center Java Database Connectivity (JDBC)

Java - Embedded SQL for Java (SQLJ)
SQLJ support for DB2 database application has been optimized for executing embedded SQL statements within Java applications. Compared to using JDBC, SQLJ reduces the amount of Java application code required. SQLJ and JDBC modules can interoperate within the same Java applications. DB2 stored procedures and functions can be developed using SQLJ.
Link representing a link to Information Center Embedded SQL for Java (SQLJ)

Microsoft ADO.NET - Visual Basic .NET and Visual C# .NET
The DB2 .NET Data Provider is an ADO.NET interface to DB2 database systems. By using the DB2 .NET Data Provider classes, your .NET applications will have managed, secure, high-performance access to DB2 data. DB2 stored procedures and functions can be developed using Microsoft CLR (Common Language Runtime) compliant .NET languages.
Link representing a link to Information Center DB2 .NET Data Provider

PHP
PHP is an open source scripting language that is especially suited for Web development. By using the ibm_db2 PHP extension or the PHP Data Objects (PDO) driver, you can access your DB2 database systems.

To get started with PHP and DB2 you can also consider using Zend Core for IBM. Zend Core for IBM is a seamless, out-of-the-box, easy-to-install, and supported PHP development and production environment optimized for DB2 database products.
Link representing a link to Information Center Building PHP applications
Link representing a link to Information Center PHP Web site downloads

Perl
Perl is an open source scripting language. Using the DBD::DB2 driver with the Perl Database Interface (DBI) Module, available from the Perl DBI Web site, you can create DB2 database applications using Perl.
Link representing a link to Information Center Programming considerations for Perl
Link representing a link to Information Center Building Perl applications
Icon representing a link to external information DB2 Perl Database Interface

Related information

Link representing a link to Information Center DB2 Supported Programming Interfaces
Link representing a link to Information Center Setting up the application development environment
Icon representing a link to external information Application development with DB2 at developerWorks