Skip to content

USE

Grammar Description

The USE statement is used to select the current database for subsequent operations in this database.

Grammar Structure

> USE db_name

Example

> USE db1;
> SELECT COUNT(*) FROM mytable;