Entering content frame

This graphic is explained in the accompanying text Dynamic Parameter Specification Locate the document in its SAP Library structure

A dynamic parameter specification is used in JDBC in the statement text of a java.sql.PreparedStatement as parameter marker. In Structure linkSQLJ, Structure linkhost expressions are used instead of dynamic parameter specifications. They can be used anywhere where a dynamic parameters specification is allowed by the Open SQL grammar.

Syntax

This graphic is explained in the accompanying text

<dynamic parameter specification> ::= '?'
                                                           | <host expression>.

<host expression> ::= SQLJ host expression as described Structure linkhere (Development Manual)

 

Open SQL allows the use of the <dynamic parameter specification>:

...

       1.      as the right side of  a comparison,

       2.      as the <update source> that is contained in an <update statement>,

       3.      as a value in the VALUES clause of an <insert statement>,

       4.      as a test value in an <in predicate>,

       5.      as lower or upper test value in a <between predicate>,

       6.      as <pattern> or <escape character> of a <like predicate>.

See

Structure linkSQLJ, Structure linkHost Variables and Host Expressions

Leaving content frame