difference between a "Local Temporary Table" and "Global Temporary Table" in SQL -DeveloperIndian
#global temporary table in sql #global temporary table sql #global temporary table #global temp table sql
Below are the Syntex of Temporary table and Global table
DECLARE @t TABLE
)CREATE TABLE #t
)CREATE TABLE ##t
) USE tempdb CREATE TABLE t
)
CREATE TABLE ##GlobalTemp
(
UserID int,
Name varchar(50),
Address varchar(150)
)
GO
insert into ##GlobalTemp values ( 1, 'Name','Address');
GO
Select * from ##GlobalTemp
CREATE TABLE ##GlobalTemp
(
UserID int,
Name varchar(50),
Address varchar(150)
)
GO
insert into ##GlobalTemp values ( 1, 'Name','Address');
GO
Select * from ##GlobalTemp