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

What is case function?

605


Explain how to use transactions efficiently : transact sql

538


Explain the components of sql?

600


How do I remove sql plus from windows 10?

578


What normalization means?

536






what's the difference between a primary key and a unique key? : Sql dba

519


how to see the create table statement of an existing table? : Sql dba

533


Is sql a case sensitive language?

527


Can there be more than one function with a similar name in a pl/sql block?

559


Is pl sql a scripting language?

601


What are all the different normalizations?

593


What is the primary key?

549


What is snowflake sql?

588


What are the operators in sql?

538


How does cross join work in sql?

539