Get Started: SQL Create Database

Before moving ahead, let’s take a tour of SQL Tutorial.

Table of Contents

SQL Create Database

To create a database in SQL, use the “CREATE DATABASE” statement.

Syntax:

				
					CREATE DATABASE data_base_name;
				
			

Example: Create a database with the name “my_first_database”.

				
					CREATE DATABASE my_first_database;
				
			

Note: To create a database, you should have admin permission.

SQL Show Database

Example: Use “SHOW DATABASES to Show the list of Databases.

				
					CREATE DATABASE my_first_database
SHOW DATABASES;
				
			

If you find anything incorrect in the above-discussed topic and have further questions, please comment below.

Connect on:

2 thoughts on “Get Started: SQL Create Database”

Leave a Comment

Stay in the loop

codingstreets