CREATE SCHEMA
Syntax
CREATE SCHEMA schema_name [IN DATABASE database_name];Description
Arguments
schema_name
IN DATABASE database_name
Examples
Create a new schema in default database
demodb.public/<no-store># CREATE SCHEMA newschema;
+------------+----------------+------------+------------------------------------------+
| Type | Name | Command | Summary |
+============+================+============+==========================================+
| schema | mydb.newschema | CREATE | schema "demodb.newschema" was |
| | | | successfully created |
+------------+----------------+------------+------------------------------------------+
demodb.public/<no-store># LIST SCHEMAS;
+------------+-------------+------------+-------------------------------+
| Name | Is Default | Owner | Created At |
+============+=============+============+===============================+
| public | true | sysadmin | 2023-08-09 17:14:46 +0000 UTC |
+------------+-------------+------------+-------------------------------+
| newschema | false | sysadmin | 2024-07-02 21:20:23 +0000 UTC |
+------------+-------------+------------+-------------------------------+Create a new schema in a specified database
Last updated

