---
title: CREATE SCHEMA
page-cloud: true
latest-operator-version: v26.2.6
latest-console-tag: v3.14.0
latest-connect-version: 4.118.0
latest-redpanda-tag: v26.2.7
docname: sql/sql-statements/create-schema
page-component-name: cloud-data-platform
page-version: master
page-component-version: master
page-component-title: Cloud
page-relative-src-path: sql/sql-statements/create-schema.adoc
page-edit-url: https://github.com/redpanda-data/cloud-docs/edit/main/modules/reference/pages/sql/sql-statements/create-schema.adoc
description: The CREATE SCHEMA statement creates a SQL schema to organize views and catalog connections in Redpanda SQL.
page-topic-type: reference
page-git-created-date: "2026-10-23"
page-git-modified-date: "2026-10-23"
page-generated-content: none
---

# CREATE SCHEMA

> For the complete documentation index, see [llms.txt](https://docs.redpanda.com/llms.txt). Component-specific: [cloud-data-platform-full.txt](https://docs.redpanda.com/cloud-data-platform-full.txt)

<!-- Source: https://docs.redpanda.com/cloud-data-platform/reference/sql/sql-statements/create-schema.md -->

The `CREATE SCHEMA` statement creates a SQL schema in the Redpanda SQL database. For what a schema holds and when to use one, see [SQL Schemas](https://docs.redpanda.com/cloud-data-platform/reference/sql/schema/).

## Syntax

```sql
CREATE SCHEMA [IF NOT EXISTS] schema_name;
```

-   `IF NOT EXISTS`: Optional. If a schema with the same name already exists, the statement returns no error. The statement does not change the existing schema.

-   `schema_name`: Name of the schema to create.


## Behavior

-   The role that creates the schema becomes its owner. To transfer ownership, use [ALTER SCHEMA …​ OWNER TO](https://docs.redpanda.com/cloud-data-platform/reference/sql/sql-statements/alter-owner/).

-   If the schema already exists and you omit `IF NOT EXISTS`, the statement fails with `Schema: <schema_name> already exists`.


## Permissions

Only a superuser can create a schema. The `CREATE SCHEMA` statement requires the `CREATE` privilege on the database. You cannot grant this privilege to other roles. In Redpanda Cloud, a user with the **SQL: Manage** permission is a superuser. See [Manage access to Redpanda SQL](https://docs.redpanda.com/cloud-data-platform/sql/manage/manage-access/).

To let other users create views in a schema, grant them the `USAGE` and `CREATE` privileges on the schema. See [GRANT](https://docs.redpanda.com/cloud-data-platform/reference/sql/sql-statements/grant/).

## Examples

Create a schema named `analytics`:

```sql
CREATE SCHEMA analytics;
```

Create the schema only if it does not exist:

```sql
CREATE SCHEMA IF NOT EXISTS analytics;
```

Let a user create views in the `analytics` schema:

```sql
GRANT USAGE, CREATE ON SCHEMA analytics TO "alice@example.com";
```

## Suggested reading

-   [DROP SCHEMA](https://docs.redpanda.com/cloud-data-platform/reference/sql/sql-statements/drop-schema/)

-   [SQL Schemas](https://docs.redpanda.com/cloud-data-platform/reference/sql/schema/)

-   [ALTER …​ OWNER TO](https://docs.redpanda.com/cloud-data-platform/reference/sql/sql-statements/alter-owner/)