Check out example codes for "mysql select database". It will help you in understanding the concepts better.

Code Example 1

USE dbname;

Code Example 2

//SELECT Database is used in MySQL to select a particular database to work with. This query is used when multiple databases are available with MySQL Server.

//You can use SQL command USE to select a particular database.

Syntax:
USE database_name;

//suppose database name is employee

use employee;

Code Example 3

CREATE DATABASE [IF NOT EXISTS] database_name
[CHARACTER SET charset_name]
[COLLATE collation_name]

Learn ReactJs, React Native from akashmittal.com