bugl
bugl
HomeLearnPatternsSearch
HomeLearnPatternsSearch

Loading lesson path

Learn/SQL/SQL References
SQL•SQL References

SQL CREATE DATABASE Keyword

Concept visual

SQL CREATE DATABASE Keyword

Pointer walk
two pointers
leftright102132436485116
left=0
right=6
1
3

Start at both ends

CREATE DATABASE Keyword

Previous

❮ SQL Keywords

Next

Create Database

The CREATE DATABASE

command is used is to create a new SQL database. The following SQL creates a database called "testDB":

Example

CREATE DATABASE testDB;

Tip:

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;

Previous

❮ SQL Keywords

Next

Previous

SQL CREATE Keyword

Next

SQL CREATE INDEX Keyword