Help Center/ GaussDB(DWS)/ Troubleshooting/ Database Use/ An Error Is Displayed Indicating Schema Already Exists When Executing CREATE SCHEMA Statement
Updated on 2025-01-06 GMT+08:00

An Error Is Displayed Indicating Schema Already Exists When Executing CREATE SCHEMA Statement

Symptom

When the CREATE SCHEMA statement is executed, an error message is displayed, indicating that the schema already exists.

1
ERROR: schema "schema" already exists

Possible Causes

In SQL statements, column names are case-sensitive, and are in lowercase by default.

Handling Procedure

In case-sensitive scenarios, you need to add double quotation marks to a column name. Run the SQL statement again, as shown in the following figure. The creation is successful.