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 :: oracle drop job if exists 
Sql :: download sql server 2016 
Sql :: sqlalchemy update row 
Sql :: how to enable mysql 5.7 root user password on linux 
Sql :: update con select postgresql 
Sql :: Add a column with a default value to an existing table in SQL Server 
Sql :: pyspark sql row get value 
Sql :: how to get 30 days previous date in mysql 
Sql :: activate log mysql 
Sql :: mysql server not starting in xampp in mac 
Sql :: mysql delete entire row on condition 
Sql :: MySQL get all previous date record 
Sql :: current date in sql 
Sql :: how to drop database name in postgresql 
Sql :: mysql count multiple columns in one query 
Sql :: flask marshmallow sqlalchemy 
Sql :: commit in sql 
Sql :: sql convert date format 
Sql :: mysql ilike 
Sql :: dba_dependencies 
Sql :: combine 2 columns search query mysql 
Sql :: sql query to find percentage of null values in a table 
Sql :: SQL CASE With ELSE in SQL 
Sql :: show table info mysql 
Sql :: update column value in sql 
Sql :: 2nd max salary query in sql 
Sql :: postgres extract time from timestamp 
Sql :: postgres describe table 
Sql :: Write an SQL query to print details of the Workers whose SALARY lies between 100000 and 500000. 
Sql :: oracle create table as select 
ADD CONTENT
Topic
Content
Source link
Name
4+3 =