Tsallaka zuwa abun ciki
Justice Tech School

CREATE DATABASE

CREATE DATABASE makes a new, empty database and USE (MySQL) or a connection setting selects it. DROP DATABASE deletes it with everything inside, so be very careful. SQLite has no CREATE DATABASE: a database is just a file.

Example
CREATE DATABASE school;
USE school;
DROP DATABASE school;

Exercise

Create a new database.

 DATABASE school;

Quiz Test

What does DROP DATABASE do?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.