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 ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I run a sql trace?

692


i have some prob lem to tell me about my self in interview first round ...

1889


Explain clause in sql?

748


How to Declare Fixed Length String Value In PL SQL

843


How many tables can you join in sql?

707






Explain what is table in a database?

783


How many times can we commit in a loop?

740


Can we use pl sql in mysql?

711


What are the two parts of design view?

770


how can we repair a mysql table? : Sql dba

705


what is the difference between cluster and non cluster index? : Sql dba

730


What is error ora-01000: maximum open cursors exceeded

783


Show the two pl/sql cursor exceptions.

806


Enlist some predefined exceptions?

797


What are the constraints available in sql?

781