Skip to content

CREATE

CREATE DATABASE IF NOT EXISTS testDB;
Query OK, 1 row affected (0.01 sec)

This SQL command creates a new database named testDB, if there isn’t already a database with that name existing. The IF NOT EXISTS clause ensures no error occurs if the testDB already exists. The output Query OK, 1 row affected (0.01 sec) indicates that the execution of the command was successful.