Temp Tables

5 pts.
Tags:
Temp Tables
Hi, My question is basic and should be simple to answer I assume. I'm a beginner so I don't know much about Temp Tables? Can you please show how Temp tables work and the concept behind them. Thanks, o

Answer Wiki

Thanks. We'll let you know when a new response is added.

Temporary tables are objects or structures similar to normal tables, but as their name says, they exist only for a limited period of time. They are useful when you need to store data to perform some task, but you do not need that data to persist after the task has completed.

There are some differences on how they work, and how can they be used, depending on the dbms.

In oracle, you can create temporary tables whose data remains until the current transaction ends, or until the current session ends. In SQL Server, you can create local temporary tables, which will live until the current session ends, and are visible just for the creator user, or global temp tables which are visible to all sessions and live until the last session that is referencing them ends.

The deletion of the temp tables is done automatically by the dbms.

Hope this helps.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following