Top "Temp-tables" questions

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

How to find difference between two columns data?

I have a temp table with two columns of integer data i want to find the difference between two columns …

sql-server tsql sql-server-2008-r2 addition temp-tables
SQL Server Creating a temp table for this query

I have this query: DECLARE @ProjectID int = 3, @Year int = 2010, @MeterTypeID int = 1, @StartDate datetime, @EndDate datetime SET @StartDate = '07/01/' + CAST(@…

sql sql-server temp-tables
How to return temporary table from stored procedure

CREATE PROCEDURE [test].[proc] @ConfiguredContentId int, @NumberOfGames int AS BEGIN SET NOCOUNT ON RETURN @WunNumbers TABLE (WinNumb int) INSERT INTO @…

sql-server stored-procedures temp-tables
Is there a way to get a list of all current temporary tables in SQL Server?

I realize that temporary tables are session/connection bound and not visible or accessible out of the session/connection. I …

sql sql-server sql-server-2000 temp-tables
dropping a global temporary table

2 Separate questions. I am using this script to drop a table [SOLVED] BEGIN EXECUTE IMMEDIATE 'DROP TABLE_NAME'; DBMS_OUTPUT.…

oracle plsql ddl temp-tables
How to retrieve field names from temporary table (SQL Server 2008)

I'm using SQL Server 2008. Say I create a temporary table like this one: create table #MyTempTable (col1 int,col2 varchar(10)) …

sql sql-server sql-server-2008 temp-tables
TSQL select into Temp table from dynamic sql

This seems relatively simple, but apparently it's not. I need to create a temp table based on an existing table …

sql sql-server tsql temp-tables
How can I make a SQL temp table with primary key and auto-incrementing field?

What am I missing here? I'm trying to get the ID field to be the primary key and auto increment …

sql-server sql-server-2005 temp-tables
Create a temporary table in MySQL with an index from a select

I have a stored function where I use temporary tables. For performance reasons, I need an index in that table. …

mysql ddl temp-tables