Web Analytics Made Easy - Statcounter
Tuesday , 31 January 2023
Home > MySql > Select Database, Use Statement – SQL

Select Database, Use Statement – SQL

Select Database, Use Statement – SQL When you have multiple databases in your SQL Schema, then before starting your operation, you would need to select a database where all the operations would be performed.

The SQL USE statement is used to select any existing database in SQL schema.


Basic syntax of USE statement is as follows:

USE DatabaseName;

Always database name should be unique within the RDBMS.


You can check available databases as follows:

| Database           |
| information_schema |
| AMROOD             |
| mysql              |
| orig               |
| test               |
6 rows in set (0.00 sec)

Now, if you want to work with AMROOD database, then you can execute the following SQL command and start working with AMROOD database:


About Whendy

Whendy Blog mengumpulkan beberapa Tutorial Website, PHP, AngularJS, JQuery, Laravel, Codeigniter dan lain-lain. ( jika sempat ) :)

Check Also

Delete Query – SQL

Delete Query – SQL is used to delete the existing records from a table. You ...

Leave a Reply

Your email address will not be published. Required fields are marked *