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

Is delete faster than truncate?

559


What is dbo in sql?

549


What do we need to check in database testing?

565


Can you inner join the same table?

536


what is a composite primary key ? : Sql dba

590






how would you enter characters as hex numbers? : Sql dba

526


What is an intersect?

665


What is sql and also describe types of sql statements?

571


how to calculate the difference between two dates? : Sql dba

561


State few characteristics of pl/sql?

575


What is mutating table error?

674


What is pl sql script?

570


How many commands are there in sql?

562


What is pl sql in dbms?

510


What is not equal in sql?

519