Loading, please wait...

Select Command

How To Use Select Database Command In SQL

 

Introduction:
In this article, you will learn, what select database command is and how to use select database command in SQL.

This is possible, that you have many database in your SQL Server. Thus, when you use your particular database, you would need to select a database, where all the operations would be performed. Hence, this query will help you to select only one database.

 

Syntax:

Basic syntax of USE statement is as follows:

use DatabaseName;

 

Example:

You can check available databases as follows:

 

Step 1: We will create a database and then write a query for select.

 

 

 

Step 2: Select our command and execute this.

 

 

 

Summary:
Thus, we learned, how to use select database command in SQL.