Search Shortcut cmd + k | ctrl + k
USE Statement

The USE statement selects a database and optional schema to use as the default.

Examples

--- Sets the 'memory' database as the default
USE memory;
--- Sets the 'duck.main' database and schema as the default
USE duck.main;

Syntax

The USE statement sets a default database or database/schema combination to use for future operations. For instance, tables created without providing a fully qualified table name will be created in the default database.

About this page

Last modified: 2024-03-02