Search
 
SCRIPT & CODE EXAMPLE
 

SQL

oracle drop temporary table

CREATE OR REPLACE PROCEDURE p AS
    table_or_view_not_exist EXCEPTION;
    PRAGMA EXCEPTION_INIT (table_or_view_not_exist, -942);
    attempted_ddl_on_in_use_GTT EXCEPTION;
    PRAGMA EXCEPTION_INIT (attempted_ddl_on_in_use_GTT, -14452);
BEGIN
    EXECUTE IMMEDIATE 'DROP TABLE t';

EXCEPTION
    WHEN table_or_view_not_exist THEN
        dbms_output.put_line('Table t did not exist at drop time. Continuing.');

    WHEN attempted_ddl_on_in_use_GTT THEN
        dbms_output.put_line('Help ! Someone is doing my job!');
        dbms_output.put_line('Please rescue me');
        RAISE;
END p;
Comment

PREVIOUS NEXT
Code Example
Sql :: sql how to duplicate a table 
Sql :: SQL Count UNIQUE Rows 
Sql :: duplicate records in sql 
Sql :: sql merge 
Sql :: postgresql get difference between two dates 
Sql :: truncate function in sql oracle 
Sql :: how to truncate all table in mysql workbench 
Sql :: replace string value in sql 
Sql :: creating a table in sql 
Sql :: postgres json to string 
Sql :: declare variables sql 
Sql :: sql server locks 
Sql :: savepoint in sql 
Sql :: to date oracle 
Sql :: mysqldump --skip-lock-tables 
Sql :: if else in plsql 
Sql :: check if string contains substring sql 
Sql :: how to show index type in postgresql 
Sql :: how to drop all tables in sql 
Sql :: mysql terminal run sql file 
Sql :: sql select most frequent value in column 
Sql :: oracle add time to date 
Sql :: mysql change default collation 
Sql :: myswql show full processlist 
Sql :: SQL Error 1040 : Too many connections 
Sql :: getdate function in postgresql 
Sql :: oracle temporary table 
Sql :: download sql server 2016 
Sql :: postgresql remove new line from string 
Sql :: change user mysql password 
ADD CONTENT
Topic
Content
Source link
Name
2+8 =