SET Session Option

SET statement allows you to set various session-level options.

CURRENT SCHEMA

Changing the current schema (database):

Syntax:

SET [CURRENT] SCHEMA [=] schema_name;
|
SET CURRENT_SCHEMA [=] schema_name;

Note:

Example:

SET CURRENT SCHEMA = default;
SET SCHEMA = 'default';
SET SCHEMA 'def' || 'ault';

Compatibility: IBM DB2

Version: HPL/SQL 0.3.11

See also: