Search
 
SCRIPT & CODE EXAMPLE
 

SQL

oracle drop type

DECLARE
    existing_type number;
BEGIN
    SELECT count(*) into existing_type
    FROM ALL_TYPES
    WHERE TYPE_NAME = 'type_name' AND OWNER = 'schema_name';
    IF existing_type = 1 then
        EXECUTE IMMEDIATE 'DROP TYPE schema_name.type_name';
    END IF;
END;
Comment

PREVIOUS NEXT
Code Example
Sql :: sql select 
Sql :: sql unique 
Sql :: how to update sql server version 
Sql :: divide by zero error in sql 
Sql :: python connect microsoft sql server 
Sql :: sql if function 
Sql :: select indexes postgres 
Sql :: postgres full text search example 
Sql :: select only distinct values another table 
Sql :: pgadmin postgres ERROR: database is being accessed by other users 
Sql :: mysql error 1114 (hy000) the table is full 
Sql :: run stored procedure sql 
Sql :: not keyword in sql 
Sql :: oracle cpu metric 
Sql :: mysqkldump devilbox 
Sql :: disable module odoo 
Sql :: how to do an average on a count sql 
Sql :: case construct in where clause 
Sql :: remove decimal in sql server 
Sql :: replace sql 
Sql :: one to one and one to many relationship 
Sql :: postgres meta command to show all rows in table 
Sql :: mysql even numbers 
Sql :: postrgesql concat 2 columns divided by ; 
Sql :: postgres copy table 
Sql :: what is between keyword used for 
Sql :: sql server epoch to datetime 
Sql :: parent child hierarchy in sql 
Sql :: sqlalchemy orm duplicate 
Sql :: tables in sql 
ADD CONTENT
Topic
Content
Source link
Name
9+2 =