DROP SYNONYM
Function
DROP SYNONYM is used to delete a synonym object.
Precautions
Only a synonym owner or a system administrator can run the DROP SYNONYM command.
Syntax
1
|
DROP SYNONYM [ IF EXISTS ] synonym_name [ CASCADE | RESTRICT ]; |
Parameter Description
Parameter |
Description |
Value Range |
---|---|---|
IF EXISTS |
Sends a notice instead of reporting an error if the specified synonym does not exist. |
- |
synonym_name |
Name of a synonym which is deleted (optionally with schema names) |
An existing synonym name. |
CASCADE | RESTRICT |
Specifies how to process related data in the dependent object when a delete operation is performed. |
|
Examples
Delete synonyms:
1
|
DROP SYNONYM t1; |
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