Creating And Modifying Db2 Objects In An Sqlj Application - IBM DB2 Manual

Table of Contents

Advertisement

connection-context specification
In an executable clause, if you do not explicitly specify a connection context,
the executable clause uses the default connection context.
Related concepts
"Example of a simple SQLJ application" on page 101
"Comments in an SQLJ application" on page 112
"Data retrieval in SQLJ applications" on page 123
"Retrieving multiple result sets from a stored procedure in an SQLJ
application" on page 134
"LOBs in SQLJ applications with the IBM Data Server Driver for JDBC and
SQLJ" on page 136
"SQLJ and JDBC in the same application" on page 139
Related tasks
"Calling stored procedures in an SQLJ application" on page 134
"Committing or rolling back SQLJ transactions" on page 153
"Controlling the execution of SQL statements in SQLJ" on page 142

"Creating and modifying DB2 objects in an SQLJ application"

"Handling SQL errors in an SQLJ application" on page 154
"Handling SQL warnings in an SQLJ application" on page 155
"Making batch updates in SQLJ applications" on page 119
"Performing positioned UPDATE and DELETE operations in an SQLJ
application" on page 114
"Setting the isolation level for an SQLJ transaction" on page 153
"Using a named iterator in an SQLJ application" on page 124
"Using a positioned iterator in an SQLJ application" on page 126
"Using scrollable iterators in an SQLJ application" on page 130
Related reference
"SQLJ executable-clause" on page 287
Creating and modifying DB2 objects in an SQLJ application
Use SQLJ executable clauses to execute data definition statements (CREATE,
ALTER, DROP, GRANT, REVOKE) or to execute INSERT, searched or positioned
UPDATE, and searched or positioned DELETE statements.
The following executable statements demonstrate an INSERT, a searched UPDATE,
and a searched DELETE:
#sql [myConnCtx] {INSERT INTO DEPARTMENT VALUES
("X00","Operations 2","000030","E01",NULL)};
#sql [myConnCtx] {UPDATE DEPARTMENT
SET MGRNO="000090" WHERE MGRNO="000030"};
#sql [myConnCtx] {DELETE FROM DEPARTMENT
WHERE DEPTNO="X00"};
Related concepts
"SQL statement execution in SQLJ applications" on page 112
Related tasks
"Performing positioned UPDATE and DELETE operations in an SQLJ
application" on page 114
Chapter 4. SQLJ application programming
113

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents