YMatrix
Quick Start
Cluster Deployment
Data Model
Data Writing
Data Query
SQL Reference
Maintenance and Monitoring
Tool Guide
Troubleshooting
Delete the sequence.
DROP SEQUENCE [IF EXISTS] name [, ...] [CASCADE | RESTRICT]
DROP SEQUENCE deletes the sequence generator table. You must have the deleted sequence (or become a superuser).
IF EXISTS
name
CASCADE
RESTRICT
Delete the sequence myserial:
DROP SEQUENCE myserial;
DROP SEQUENCE is fully compliant with the SQL standard, but this standard only allows one sequence to be deleted per command. Additionally, the IF EXISTS option is a YMatrix database extension.