DROP SYNONYM

DROP SYNONYM — remove a synonym

Synopsis

DROP [ PUBLIC ] SYNONYM [ IF EXISTS ] synonym_name;

Description

DROP SYNONYM removes a synonym.

Parameters

PUBLIC

At present, only syntax compatibility is available, and the feature will be supported in future versions.

IF EXISTS

If the synonym does not exist, do not throw an error, but issue a prompt.

synonym_name

The name of synonym to be deleted

Examples

Drop a synonym:

DROP SYNONYM IF EXISTS profits;

See Also

CREATE SYNONYM