Top "Temp-tables" questions

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

Check if a temporary table exists and delete if it exists before creating a temporary table

I am using the following code to check if the temporary table exists and drop the table if it exists …

sql-server sql-server-2005 temp-tables alter-table
Inserting data into a temporary table

After having created a temporary table and declaring the data types like so; CREATE TABLE #TempTable( ID int, Date datetime, …

sql sql-server temp-tables
Create a temporary table in a SELECT statement without a separate CREATE TABLE

Is it possible to create a temporary (session only) table from a select statement without using a create table statement …

mysql select temp-tables create-table derived-table
How do you create a temporary table in an Oracle database?

I would like to create a temporary table in a Oracle database something like Declare table @table (int id) In …

sql oracle temp-tables
What's the difference between a temp table and table variable in SQL Server?

In SQL Server 2005, we can create temp tables one of two ways: declare @tmp table (Col1 int, Col2 int); or …

sql-server temp-tables table-variable
How can I simulate an array variable in MySQL?

It appears that MySQL doesn't have array variables. What should I use instead? There seem to be two alternatives suggested: …

mysql arrays variables set temp-tables
SQL Server: Is it possible to insert into two tables at the same time?

My database contains three tables called Object_Table, Data_Table and Link_Table. The link table just contains two columns, …

sql sql-server insert temp-tables
Local and global temporary tables in SQL Server

What is the difference between local and global temporary tables in SQL Server?

sql-server temp-tables global-temp-tables
When should I use a table variable vs temporary table in sql server?

I'm learning more details in table variable. It says that temp tables are always on disk, and table variables are …

sql-server temp-tables table-variable
Temporary table in SQL server causing ' There is already an object named' error

I have the following issue in SQL Server, I have some code that looks like this: DROP TABLE #TMPGUARDIAN CREATE …

sql sql-server tsql temp-tables