Javatpoint Logo
Javatpoint Logo

SELECT Database

USE database command is used to select the database, you want to use and create table within it.

Syntax:

Example:

Suppose we have multiple databases in the database list and we have to choose a particular one.

For example,we have multiple databases shown in the following image:

Mariadb Select database 1

Here we will use "Javatpoint" database to create tables etc.. So you have to use USE command.

Output:

Mariadb Select database 2

Now, "javatpoint" database is selected. You can create tables within it.






Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA