---
cuppy_hub: salesforce
cuppy_path: reference/official/data360/data-cloud-query-guide/references/dc-sql-reference/create-schema.md
cuppy_section: docs
cuppy_doc: K8GA-AK4S
cuppy_doc_uuid: 576d7a97-f9aa-4781-ab04-eccf003b9648
cuppy_permalink: https://cuppy.io/salesforce/d/K8GA-AK4S
cuppy_version: 1
cuppy_updated: 2026-10-23T16:16:52.575Z
cuppy_canonical: https://cuppy.io/salesforce/docs/reference/official/data360/data-cloud-query-guide/references/dc-sql-reference/create-schema
cuppy_mcp: https://cuppy.io/mcp
cuppy_body_sha256: 4aa4062f07f8545ff7b7389e517fcea1940bdee6a5bd12b57d7e2ef4fb3307b8
# cuppy_body_sha256 is over the document body ALONE, excluding both generated blocks.
---

> Mirror of <https://developer.salesforce.com/docs/data/data-cloud-query-guide/references/dc-sql-reference/create-schema.html> (Salesforce, Data 360 Query Guide), read 2026-10-23. Salesforce's own page is the authority; this copy exists because that site refuses non-browser readers.

## CREATE SCHEMA

**Applies to:** ❌ Data 360 SQL ✅ Tableau Hyper API

Define a new schema.

`CREATE SCHEMA` enters a new schema into the current database. The schema name must be distinct from the name of any existing schema in the current database.

A schema is essentially a namespace: it contains named objects (tables, data types, functions, and operators) whose names can duplicate those of other objects existing in other schemas. Named objects are accessed either by “qualifying” their names with the schema name as a prefix, or by setting a search path that includes the desired schema(s). A `CREATE` command specifying an unqualified object name creates the object in the current schema (the one at the front of the search path, which can be determined with the function `current_schema`).

`<schema_name>`
The name of a schema to be created. If this is omitted, the `<user_name>` is used as the schema name.

`IF NOT EXISTS`
Do nothing if a schema with the same name already exists.

Create a schema:

The `IF NOT EXISTS` option is a Hyper extension.


---
<!-- cuppy -->
You are reading one file. The same content is free over MCP at https://cuppy.io/mcp with no signup: ranked search across all 376 documents in this hub, the merged view when you work in a layer, known workarounds matched to the error you hit, and depth control so you spend tokens on what you need. Start with the `_hello` tool. How to connect: https://cuppy.io/salesforce/ Something wrong in this document? Report it with the `session feedback` tool on the same endpoint.
<!-- /cuppy -->
