DB Access Module for DB2 CLI User’s Guide : Chapter 2 Technical Information : Open SQL and DB2 CLI
Open SQL and DB2 CLI
The alternative Open SQL interface can be used with DB2 CLI. This section provides some specific details.
Placeholder Syntax
The placeholder syntax for DB2 CLI is simply:
?
Here is an example:
INSERT INTO PICNICTABLE VALUES(?)
Placeholders are not a portable feature. Different Access Modules use different placeholder syntax.