public. You can create additional schemas to separate and organize objects by function, team, or access level.
Syntax
Parameters
| Parameter | Description |
|---|---|
IF NOT EXISTS | Prevents an error if a schema with the same name already exists. Without this clause, the statement fails if the schema already exists. |
<schema_name> | The name of the schema to create. Must be unique within the database. |
Examples
Create a schemaschema.object) when the database context is already set, or a three-part identifier (database.schema.object) to fully qualify the object across databases:
Related commands
- DROP SCHEMA - Delete a schema
- ALTER SCHEMA - Modify schema properties