Curriculum
Course: SQL
Login

Curriculum

SQL

SQL References

0/80

MySQL Functions

0/139

SQL Server Functions

0/84

SQL Quick Ref

0/1
Text lesson

SQL CREATE DB

The SQL CREATE DATABASE Statement

The CREATE DATABASE statement is employed for initiating a fresh SQL database.

Syntax

CREATE DATABASE databasename

CREATE DATABASE Example

This SQL statement establishes a database named “testDB”.

Example

CREATE DATABASE testDB;

 

Tip: Ensure you possess administrative privileges prior to initiating any database creation. After creating a database, its presence can be confirmed within the list of databases using the SQL command: SHOW DATABASES;