DROP TYPE
Function
DROP TYPE deletes a user-defined data type. Only the type owner has permission to run this statement.
Syntax
1 | DROP TYPE [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ] |
Parameter Description
| Parameter | Description | Value Range |
|---|---|---|
| IF EXISTS | If the specified type does not exist, a message is displayed instead of an error. | - |
| name | Specifies the name of the type to be deleted (schema-qualified). | Specifies an existing domain type. |
| CASCADE | RESTRICT | Specifies how to process related data in the dependent object when a delete operation is performed. |
|
Examples
Delete compfoo type.
1 | DROP TYPE IF EXISTS compfoo cascade; |
Helpful Links
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot