To create a database, which SQL statement is used?
To create a database, which SQL statement is used?
Solution
✅ Correct Option: 2
CREATE DATABASE is the SQL statement that creates a new database, for example
Option 1: CREATE TABLE creates a table inside an existing database, not the database itself.
Option 3: SHOW DATABASES only lists the databases that already exist; it creates nothing.
Create the database first, select it with USE, and only then create tables in it.
Related questions:
2026: 23 May Shift 1
2026: 20 May Shift 1