What is the difference between a “Local Temporary Table” and “Global Temporary Table” in SQL?

387 viewsSQLSQL
0

1. A Local Temporary Table is created by giving it a prefix of # whereas a Global
Temporary Table is created by giving it a prefix of ##.
2. A Local Temporary Table cannot be shared among multiple users whereas a Global
Temporary Table can be shared among multiple users.
3. A Local Temporary Table is only available to the current DB connection for the
current user and are cleared when the connection is closed whereas a Global
Temporary Table is available to any connection once created. They are cleared when
the last connection is closed.

Gautam Sarswat Changed status to publish January 11, 2023
Write your answer.

Recent Replies

Web Stories

Forum Statistics

Registered Users
3,575
Forums
6
Topics
70
Replies
112
Topic Tags
69
Empty Topic Tags
243

Posted

in

Tags:

Comments

Leave a Reply

A Tribute to Dilip Kumar