Controls automatic parameterization of client statements.
Off, Simple, Forced
Simple
PUBLIC role | For current user | For other users | |
---|---|---|---|
Allowed to set permanently? | Yes, with SET ANY PUBLIC OPTION | Yes | Yes, with SET ANY PUBLIC OPTION |
Allowed to set temporarily? | Yes, with SET ANY PUBLIC OPTION | Yes (current connection only) | No |
When a client application prepares a SQL statement, the database server may choose to replace constant literals within the SQL text with parameter placeholders prior to preparing the statement. The resulting SQL statement is more general. When subsequent SQL statements that differ only by values of the parameterized constants are executed, they can be matched with the parameterized statement. Generalized SQL statements enable two potential performance benefits:
The first benefit requires client statement caching to be enabled, while the second benefit requires both client statement caching and server plan caching to be enabled.
Parameterization is transparent to the client application, and automatically inserted parameters are not visible to a DESCRIBE of the statement or cursor.
Parameterization behavior is controlled by the following values for this option: