Search
 
SCRIPT & CODE EXAMPLE
 

SQL

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 :: test the postgresql db connection 
Sql :: csv into data postgres 
Sql :: version and edition of SQL Server Database Engine 
Sql :: postgresql import a database of gzip 
Sql :: install postgresql 10 centos 7 
Sql :: postgresql subtract date/hours 
Sql :: mysql get first n characters of string 
Sql :: Inner join - to join 3 tables - https://www.postgresqltutorial.com/postgresql-tutorial/postgresql-inner-join/ 
Sql :: change magento database url usimg musql 
Sql :: sql between operator 
Sql :: how to check table name in current database sql 
Sql :: sql select count distinct 
Sql :: android studio SQLiteDatabase delete all data in database 
Sql :: SQL Modify Column in a Table -PostgreSQL 
Sql :: sql set 
Sql :: sql replace single quote 
Sql :: restart serial number for postgres 
Sql :: T-SQL - Delete Column 
Sql :: get the location of where postgres database is stored 
Sql :: mysql select statement after index 
Sql :: sql stored procedure update if parameter is not null 
Sql :: SQL Duplicates by Composite 
Sql :: make date with time sql 
Sql :: get initials name in sql 
Sql :: mysql how to use FIND_IN_SET function in WHERE clause ? 
Sql :: clear table sql 
Sql :: exec procedure pl sql 
Sql :: there is no unique constraint matching given keys for referenced table 
Sql :: sql left join 
Sql :: date get month number sql 
ADD CONTENT
Topic
Content
Source link
Name
4+6 =