The name of an existing entity to set as the user’s current for the active session. Use SET DEFAULT to persist the change for new sessions. For case-sensitive names, the name must be wrapped in double quotes; otherwise, the lowercase name will be used.
When using a new Schema, a fully qualified Schema name can optionally be used to set the current Database and Schema.
Examples
Use a new Database
In the following example, we are creating a new Database called demodb2 and using it. Note the Database in the command line prompt changing from demodb to demodb2:
In the following example, we are switching from the current public Schema to use a new Schema called newschema. Note how after the command is issued, the default Schema changes: