DROP SEQUENCESection: SQL Commands (7)
Index Return to Main Contents
NAMEDROP SEQUENCE - remove a sequence
DROP SEQUENCE [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]
- IF EXISTS
- Do not throw an error if the sequence does not exist. A notice is issued in this case.
- The name (optionally schema-qualified) of a sequence.
- Automatically drop objects that depend on the sequence.
- Refuse to drop the sequence if any objects depend on it. This is the default.
To remove the sequence serial:
DROP SEQUENCE serial;
SEE ALSOCREATE SEQUENCE [create_sequence(7)], ALTER SEQUENCE [alter_sequence(7)]
This document was created by man2html, using the manual pages.
Time: 05:34:15 GMT, December 24, 2015