| CREATE DATABASE database_name; |
See the SQL samples section below for an explanation of the CREATE DATABASE statement.
The SQL CREATE DATABASE statement simply creates a database.
In this SQL samplewe will create a database called ‘db_Company’.
Use the CREATE DATABASE statement below:
| CREATE DATABASE db_Company; |
The database 'db_Company' has now been created. We can now start adding database tables to this database using the CREATE TABLE statement.
| CompanyName |
Town |
| SQL Sample |
Hamburg |
| SQL Code Land |
Hamburg |
| Sample Code World |
Curry |
| SQL Reference Ltd |
Pisa |
Related SQL Sample Code: