Search
 
SCRIPT & CODE EXAMPLE
 

SQL

oracle sql drop sequence

DROP SEQUENCE sequence_name;
Comment

oracle drop sequence

DECLARE
    s_exist NUMBER(1);
BEGIN
    SELECT CASE WHEN exists(SELECT * FROM ALL_SEQUENCES 
                           WHERE SEQUENCE_NAME = 'seq_name') THEN 1
       	ELSE 0 
    END INTO s_exist FROM DUAL;
    IF s_exist = 1 THEN
        EXECUTE IMMEDIATE 'DROP SEQUENCE seq_name';
    END IF;
END;
Comment

PREVIOUS NEXT
Code Example
Sql :: Port 5432 is already in use Usually this means that there is already a PostgreSQL server running on your Mac. If you want to run multiple servers simultaneously, use different ports. 
Sql :: identity_insert is set to off 
Sql :: how to get yesterday date in sql 
Sql :: Failed to stop mysqld.service: Unit mysqld.service not loaded. 
Sql :: sql server get utc date 
Sql :: doublon sql 
Sql :: oracle finding duplicate records 
Sql :: oracle get current schema 
Sql :: mysql workbench in ubuntu 14.04 
Sql :: mysql dump all databases 
Sql :: postgresql list extensions 
Sql :: sql server beginning of month 
Sql :: how to check port number for postgresql 
Sql :: how to change potgress password 
Sql :: import sql file from laravel 
Sql :: mysql copy table with new name 
Sql :: drop table if exists in postgres 
Sql :: mysql first day of month 
Sql :: convert varchar to int in sqlite 
Sql :: mysql allow remote connections 
Sql :: how to get list of synonyms in oracle 
Sql :: postgres alter table add primary key 
Sql :: import database in mysql command line xampp 
Sql :: ora-01950 no privileges on tablespace 
Sql :: how to delay stored procedure execution in sql server 
Sql :: mysql drop primary key 
Sql :: update left join mysql 
Sql :: postgres set user as superuser 
Sql :: hexadec to sql REDSHIFT 
Sql :: vagrant mysql downgrade version 
ADD CONTENT
Topic
Content
Source link
Name
7+2 =