Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is the difference between a Local temporary table and a
Global temporary table? How is each one used?

Answers were Sorted based on User's Feedback



What is the difference between a Local temporary table and a Global temporary table? How is each on..

Answer / sarvesh nakhate

A local temporary table exists only for the duration of a
connection or, if defined inside a compound statement, for
the duration of the compound statement.

A global temporary table remains in the database
permanently, but the rows exist only within a given
connection. When connection is closed, the data in the
global temporary table disappears. However, the table
definition remains with the database for access when
database is opened next time.

Is This Answer Correct ?    17 Yes 9 No

What is the difference between a Local temporary table and a Global temporary table? How is each on..

Answer / tarun kumnar basak

A Local Temporary table is almost the same as the Temporary
table in oracle. The main difference is that in oracle
you've to specify the keyword local in your query and also
Local Temporary table exists only for the user who is
created the table. So no other session can use/see the
temporary table.

Where as GTT is another kind of temporary table in oracle
which is by default the temporary table(if you don't
specify the keyword local). GTT can be used by every
user/schema which is connected to the DB irrespective of
each others session and without knowing what data resides
for a particular user. As soon as you log off from the
server the GTT also deleted. It is more kind of session
specific where the structure of the table is shared among
all users but not the data. Data remains private for each
users session and no Lock can be aquired on the table.

Is This Answer Correct ?    5 Yes 3 No

Post New Answer

More SQL Server Interview Questions

what r steps to we need to fallow b4 kill the process?

1 Answers   Verizon,


What is a collation?

0 Answers  


What are the types of stored procedures in an sql server?

0 Answers  


what is difference between view and Dip.

0 Answers   IBM, L&T,


How to compose an inquiry to demonstrate the points of interest of an understudy from students table whose name begins with k?

0 Answers  


what are questions asked in TCS for database tester (sqlserver)for 2-3 exp?

0 Answers   ABC, TCS,


Explain what are various ways to enhance the ssrs report?

0 Answers  


Explain the concept of recursive stored procedure.

0 Answers  


What is difference between foreign key and unique key?

0 Answers  


what is database replicaion? What are the different types of replication you can set up in sql server? : Sql server database administration

0 Answers  


How to Create Login and User through query in Sql server 2005.and also how to delete Login and User through query?

2 Answers  


What is a trigger in sql server?

0 Answers  


Categories