Top "Temp-tables" questions

Temporary tables are a feature of RDBMS's as a means of storing intermediate results.

Is it possible to add index to a temp table? And what's the difference between create #t and declare @t

I need to do a very complex query. At one point, this query must have a join to a view …

sql tsql indexing temp-tables
Creating a Primary Key on a temp table - When?

I have a stored procedure that is working with a large amount of data. I have that data being inserted …

sql-server indexing primary-key temp-tables
TSQL Define Temp Table (or table variable) Without Defining Schema?

Is there a way to define a temp table without defining it's schema up front?

sql-server tsql schema temp-tables table-variable
Creating temporary tables in SQL

I am trying to create a temporary table that selects only the data for a certain register_type. I wrote …

sql postgresql temp-tables
PostgreSQL temporary tables

I need to perform a query 2.5 million times. This query generates some rows which I need to AVG(column) and …

performance postgresql optimization temp-tables
Getting around MySQL "Can't reopen table" error

I'm currently busy implementing a filter of sorts for which I need to generate an INNER JOIN clausse for every "…

mysql temp-tables
Execute sp_executeSql for select...into #table but Can't Select out Temp Table Data

Was trying to select...into a temp Table #TempTable in sp_Executedsql. Not its successfully inserted or not but there …

sql sql-server-2008 tsql sp-executesql temp-tables
Why is there a HUGE performance difference between temp table and subselect

This is a question about SQL Server 2008 R2 I'm not a DBA, by far. I'm a java developer, who has …

sql sql-server-2008-r2 subquery query-performance temp-tables
T-SQL Dynamic SQL and Temp Tables

It looks like #temptables created using dynamic SQL via the EXECUTE string method have a different scope and can't be …

sql-server tsql stored-procedures dynamic-sql temp-tables
What is the difference between a temporary table vs global temporary table in Oracle?

I have heard these two terms "temporary table" and "global temporary table" used pretty much in similar context. What is …

database oracle temp-tables