What are Global Temporary tables

Answer Posted / subbu

Global temporary tables belongs to that session only

create global temporary table test_gbl
( l_number_no number,
l_char_vc varchar2(100)
) [on commit delete rows]

ON COMMIT DELETE ROWS:- It's a default one
If any commit will issued that total data of a table will
losses. But table is exit

To overcome this we have option
ON COMMIT PRESERVE ROWS:-
means, If commit will issue the data of a table willn't loss
up to end of the session. Is session ends the data will losses.

Regards
Subbu

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

which tcp/ip port does sql server run on? : Sql dba

706


what is the difference between join and union? : Sql dba

720


Is it possible to sort a column using a column alias?

816


How to read xml file in oracle pl sql?

691


what is datawarehouse? : Sql dba

750






What are pl sql procedures?

699


how to drop an existing view in mysql? : Sql dba

792


Can we rollback truncate?

719


Is left join inner or outer by default?

761


what are all different types of collation sensitivity? : Sql dba

708


Can I copy :old and :new pseudo-records in/to an oracle stored procedure?

869


Name the different types of indexes in sql and define them.

782


How does one load ebcdic data? : aql loader

827


What is benefit of creating memory optimized table?

703


How do you determine the current isolation level? : Transact sql

750