DROP SEQUENCE
Function
DROP SEQUENCE deletes a sequence from the current database.
Precautions
Only a sequence owner or a system administrator can delete a sequence.
Syntax
         1
          | 
        
         DROP SEQUENCE [ IF EXISTS ] {[schema.]sequence_name} [ , ... ] [ CASCADE | RESTRICT ];  | 
       
Parameter Description
| 
         Parameter  | 
       
         Description  | 
       
         Value Range  | 
      
|---|---|---|
| 
         IF EXISTS  | 
       
         Sends a notice instead of an error if the specified sequence does not exist.  | 
       
         -  | 
      
| 
         name  | 
       
         Specifies the name of the sequence to be deleted.  | 
       
         Specifies an existing sequence name.  | 
      
| 
         CASCADE | RESTRICT  | 
       
         Specifies how to process related data in the dependent object when a delete operation is performed.  | 
       
        
  | 
      
Examples
Delete sequence serial.
         1
          | 
        
         DROP SEQUENCE serial;  | 
       
Helpful Links
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.