Sqlj Statement Reference Information; Sqlj Clause; Sqlj Host-Expression - IBM DB2 Manual

Table of Contents

Advertisement

SQLJ statement reference information

SQLJ statements are used for transaction control and SQL statement execution.

SQLJ clause

The SQL statements in an SQLJ program are in SQLJ clauses.
Syntax
#sql
connection-declaration-clause
iterator-declaration-clause
executable-clause
Usage notes
Keywords in an SQLJ clause are case sensitive, unless those keywords are part of
an SQL statement in an executable clause.

SQLJ host-expression

A host expression is a Java variable or expression that is referenced by SQLJ
clauses in an SQLJ application program.
"LOBs in JDBC applications with the IBM Data Server Driver for JDBC and
SQLJ" on page 49
Related tasks
"Learning about a data source using DatabaseMetaData methods" on page 21
"Creating and modifying database objects using the Statement.executeUpdate
method" on page 24
"Updating data in tables using the PreparedStatement.executeUpdate method"
on page 25
"Learning about parameters in a PreparedStatement using ParameterMetaData
methods" on page 31
"Retrieving data from tables using the Statement.executeQuery method" on
page 32
"Retrieving data from tables using the PreparedStatement.executeQuery
method" on page 33
"Calling stored procedures in JDBC applications" on page 45
Related reference
"JDBC differences between the current IBM Data Server Driver for JDBC and
SQLJ and earlier DB2 JDBC drivers" on page 370
;
Related reference
"SQLJ connection-declaration-clause" on page 285
"SQLJ executable-clause" on page 287
"SQLJ iterator-declaration-clause" on page 285
Chapter 7. JDBC and SQLJ reference information
281

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents