DROP SEQUENCE - delete a sequence

SYNOPSIS

 

DROP SEQUENCE name [, ...] [ CASCADE | RESTRICT ]

DESCRIPTION Description

DROP SEQUENCE deleted sequence number generator from the database.

PARAMETERS Parameters

name

 Sequence name (optionally schema-qualified).
CASCADE

 Automatically drop objects that depend on the sequence.
RESTRICT

 If there is any object depends Refuse to drop the sequence. This is the default.

EXAMPLES Examples


 Delete sequence serial from database:

 

DROP SEQUENCE serial;

Guess you like

Origin www.cnblogs.com/fanweisheng/p/11081244.html