DROP SEQUENCE
Removes the specified named sequence number generator.
Syntax
DROP SEQUENCE [[database.]schema.]sequence[,…]
Parameters
[database.]schema
|
Specifies a schema, by default myschema.thisDbObject If you specify a database, it must be the current database. |
sequence
|
Specifies the sequence to drop. |
Privileges
One of the following:
- Superuser
- Sequence or schema owner
Restrictions
- For sequences specified in a table's default expression, the default expression fails the next time you try to load data. Vertica does not check for these instances.
DROP SEQUENCEdoes not support theCASCADEkeyword. Sequences used in a default expression of a column cannot be dropped until all references to the sequence are removed from the default expression.
Example
The following command drops the sequence named sequential.
=> DROP SEQUENCE sequential;