Quick onboard
Deployment
Data Modeling
Connecting
Migration
Query
Operations and Maintenance
Common Maintenance
Partition
Backup and Restore
Expansion
Mirroring
Resource Management
Security
Monitoring
Performance Tuning
Troubleshooting
Reference Guide
Tool guide
Data type
Storage Engine
Executor
Stream
DR (Disaster Recovery)
Configuration
Index
Extension
SQL Reference
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.