USE DATABASE

The USE DATABASE command lets you shift between databases within an existing session.

Syntax

USE DATABASE <name>

Parameters

Parameter

Description

name

The name of the database.

Examples

USE DATABASE master;

Permissions

The USE DATABASE command requires Comment permission.