CURRENT SCHEMA special register
The CURRENT SCHEMA (or CURRENT_SCHEMA) special register specifies a VARCHAR(128) value that identifies the schema name used to qualify database object references, where applicable, in dynamically prepared SQL statements.
For compatibility with Db2® for z/OS®, CURRENT SQLID (or CURRENT_SQLID) can be specified in place of CURRENT SCHEMA.
The initial value of CURRENT SCHEMA is the authorization ID of the current session user. The value can be changed by invoking the SET SCHEMA statement.
The setting of CURRENT SCHEMA does not affect the Explain facility's selection of explain tables.
The QUALIFIER bind option controls the schema name used to qualify database object references, where applicable, for static SQL statements.
Example: Set the schema for object qualification
to 'D123'.
SET CURRENT SCHEMA = 'D123'