Skip to content

SCHEMA

CREATE SCHEMA sales;
Terminal window
Query OK, 1 row affected (0.00 sec)

This is a simple example of an SQL statement to create a new schema in MySQL. A schema, in SQL terms, is a collection of database objects, including tables, views, indexes, and procedures, associated with a database. In this example, a new schema called ‘sales’ is created.