Oracle® TimesTen In-Memory Database SQL Reference Release 11.2.1 Part Number E13070-03 |
|
|
View PDF |
The DROP SEQUENCE statement removes an existing sequence number generator.
Required privilege
No privilege is required for the sequence owner.
DROP ANY SEQUENCE for another user's sequence.
SQL syntax
DROP SEQUENCE [Owner.]SequenceName
Parameters
The DROP SEQUENCE statement has the parameter:
Parameter | Description |
---|---|
[ Owner .] SequenceName |
Name of the sequence number generator |
Description
Sequences can be dropped while they are in use.
There is no ALTER SEQUENCE statement in TimesTen. To alter a sequence, use the DROP SEQUENCE statement and then create a new sequence with the same name. For example, to change the MINVALUE, drop the sequence and re-create it with the same name and with the desired MINVALUE.
If the sequence is part of a replication scheme, use the ALTER REPLICATION statement to drop the sequence from the replication scheme. Then use the DROP SEQUENCE statement to drop the sequence.
Examples
The following statement drops mysequence
:
DROP SEQUENCE mysequence;
See also