CREATE DATABASE statement in SQL

The CREATE DATABASE statement is used to create a new database.

Syntax:

CREATE DATABASE databasename;

CREATE DATABASE EXAMPLE

CREATE DATABASE test;





 Note: Make sure you have admin privilege before creating any database. Once a database is created, you can check it in the list of databases with the following SQL command: SHOW DATABASES;



Comments

  1. What is the basic difference between sql and mysql?

    ReplyDelete

Post a Comment

Popular posts from this blog

Hyperparameter tuning for machine learning models.

What is difference between Yield and return Keyword in Python