Answers for "temporary table oracle"

SQL
1

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;
Posted by: Guest on April-30-2021
0

oracle temporary table

CREATE GLOBAL TEMPORARY TABLE my_temp_table (
    id          NUMBER,
    description VARCHAR2(20)
) ON COMMIT DELETE ROWS;
Posted by: Guest on May-04-2021

Code answers related to "temporary table oracle"

Code answers related to "SQL"

Browse Popular Code Answers by Language