Previous Topic

Next Topic

Drop Sequence

Valid in: SQL, ESQL

The Drop Sequence statement deletes a sequence from the database catalog.

For more information about sequences, see the Database Administrator Guide.

Previous Topic

Next Topic

Syntax

The Drop Sequence statement has the following format:

[EXEC SQL] DROP SEQUENCE [schema.]sequence_name;

Previous Topic

Next Topic

Permissions

You must have the create_sequence privilege.

Previous Topic

Next Topic

Locking and Sequences

In applications, sequences use logical locks that allow multiple transactions to retrieve and update the sequence value while preventing changes to the underlying sequence definition. The logical lock is held until the end of the transaction.

Previous Topic

Next Topic

Related Statements

Alter Sequence

Create Sequence

Previous Topic

Next Topic

Examples: Drop Sequence

The following example deletes sequence "XYZ":

drop sequence XYZ


© 2007 Ingres Corporation. All rights reserved.