SQLJ executable-clause
An executable clause contains an SQL statement or an assignment statement. An assignment statement assigns the result of an SQL operation to a Java™ variable.
This topic describes the general form of an executable clause.
Syntax
Usage notes
- An executable clause can appear anywhere in a Java program that a Java statement can appear.
- SQLJ reports negative SQL codes from executable clauses through
class java.sql.SQLException.
If SQLJ raises a run-time exception during the execution of an executable clause, the value of any host expression of type OUT or INOUT is undefined.