Access databases using IBM Developer Kit for Java DB2 SQLJ support

DB2® Structured Query Language for Java™ (SQLJ) support is based on the SQLJ ANSI standard. The DB2 SQLJ support is contained in the IBM® Developer Kit for Java. DB2 SQLJ support allows you to create, build, and run embedded SQL for Java applications.

The SQLJ support provided by the IBM Developer Kit for Java includes the SQLJ run-time classes, and is available in /QIBM/ProdData/Java400/ext/runtime.zip.

SQLJ setup

Before you can use SQLJ in Java applications on your server, you need to prepare your server to use SQLJ. For more information, see Setting up your server to use SQLJ.

SQLJ tools

The following tools are also included in the SQLJ support provided by the IBM Developer Kit for Java:

Note: These tools must be run in the Qshell Interpreter.

DB2 SQLJ restrictions

When you create DB2 applications with SQLJ, you should be aware of the following restrictions:

For information on using SQL in your Java applications, see Embed SQL Statements in your Java application and Compile and run SQLJ programs.