Home » MariaDB Select Datatabase

MariaDB Select Datatabase

by Online Tutorials Library

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 “tutoraspire” database to create tables etc.. So you have to use USE command.

Output:

Mariadb Select database 2

Now, “tutoraspire” database is selected. You can create tables within it.

You may also like