so_damn_insane's Journal
 
[Most Recent Entries] [Calendar View] [Friends View]

Tuesday, November 29th, 2005

    Time Event
    4:12p
    kā iztīrīt lielu temporālu tabulu, kurā dati ir uz sesiju,
    neaiztiekot temporālās tabulas, kurās dati ir tikai uz transakciju?

    test>


    create global temporary table gt1 (id number(12)) on commit delete rows;

    create global temporary table gt2 (id number(12)) on commit preserve rows;

    insert into gt1 values(1);

    insert into gt2 values(2);

    declare pragma autonomous_transaction;
    begin
    execute immediate 'truncate table gt2';
    end;
    /


    select * from gt1;
    ID
    ---------
    1

    select * from gt2;
    > no rows

    << Previous Day 2005/11/29
    [Calendar]
    Next Day >>

About Sviesta Ciba