SQL Commands


SQL USE Statement

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

The database remains default until end of session or execution of another USE statement with some other database.

SQL USE DATABASE Statement:

The Syntax for the USE Statement is:

USE database_name;

database_name - 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 ;



BookMark This Page