Outdated Version

You are viewing an older version of this section. View current production version.

USE

Use a database or schema.

Syntax

USE db_name | schema_name

Remarks

  • db_name is the name of a MemSQL database.
  • schema_name is the name of a MemSQL schema.
  • This command must be run on the master aggregator or a child aggregator node (see Node Requirements for MemSQL Commands ).

Example

memsql> USE test;
Database changed