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

What is use of package in pl sql?

529


What is denormalization in a database?

587


what is cross join? : Sql dba

568


What is mutating sql table?

603


What is %s in sql?

561






How to Declare Fixed Length String Value In PL SQL

657


what is a primary key? : Sql dba

552


How to create an array in pl/sql?

579


What are literals in sql server?

524


What is difference between group by and partition by?

492


What is the sql query to display the current date?

547


- Types of triggers - View - Dcl - Procedures, packages, functions - Metasolve - Can use Dcl in triggers - package case study - Cursor and its types - triggers schedule - Wrap - Why we are using fetch and for in cursor. difference?

1383


What are sql indexes?

541


what is the difference between ereg_replace() and eregi_replace()? : Sql dba

552


How run sql*plus commands that are stored in a local file?

513