Purpose
This statement is used to drop a sequence.
Syntax
DROP SEQUENCE [schema. ] sequence_name;
Parameters
| Parameter | Description |
|---|---|
| schema. | Specifies the user who owns the sequence. If you do not specify Schema, the sequence of the current login user is used by default. |
| sequence_name | Specifies the name of the sequence to be dropped. |
Example
Drop the sequence seq1.
obclient> DROP SEQUENCE seq1;
Query OK, 0 rows affected