SQL USE Statement

The USE Statement is used to select a database and perform SQL operations on that database.

The database remains as it is i.e. default until end of session or until execution of another USE statement with some other database.

The Syntax for the USE Statement is:

USE db_name;
db_name- It is the name of the database to be selected.

USE DATABASE Example:

If you want to use database MyDatabase, the statement would be like
USE MyDatabase ;

Comments