SQL - Create Database
SQL - Create Database
Syntax
Here, the DatabaseName is the name of the database that we want to create. The
database name can contain any valid identifiers, such as number, letters, or
underscores. But a DatabaseName cannot be a keyword available in SQL.
Example
Once the database testDB is created, you can check it in the list of databases using
SQL command SHOW DATABASES;.
Syntax
SHOW DATABASES;
Output
Database
master
performance_schema
information_schema
mysql
testDB
Syntax
USE testDB;
That's it! we have successfully created a database in SQL. Now, we can create tables
and other database objects within this new database.
https://www.tutorialspoint.com/sql/sql-create-database.htm 2/2