mysql choose database code example
Example 1: mysql go into database
USE dbname;
Example 2: how to create database using cmd mysql
CREATE DATABASE [IF NOT EXISTS] database_name
[CHARACTER SET charset_name]
[COLLATE collation_name]
Example 3: mysql select database
SELECT * FROM table_name
Example 4: mysql select database
Syntax:
USE database_name;
use employee;
Example 5: mysql create database
CREATE {DATABASE | SCHEMA} [IF NOT EXISTS] db_name
[create_option] ...
create_option: {
[DEFAULT] CHARACTER SET [=] charset_name
| [DEFAULT] COLLATE [=] collation_name
}