Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to create temporary table and how to put information into it!

Status
Not open for further replies.

Tarzan613

Programmer
Jun 10, 2002
10
0
0
US
How to create temporary table and how to put information into it?
 

Dear ;

There is no any differece in the syntax of creating temp tabls and putting information into it. The only difference is the # and ## sign with the name of temp table. # is for private temp table and it is only for the current connection. Other users can't see this table. ## is for public temp tables and others users can see it.

For example.

Create Table #temptable
(
TempID [int] ,
Data [varchar]
)

Insert into #temptable (TempID , Data ) Values (1, 'data1')

All the rules which are applied to permanent table also can be applied to temp table.

Regards,
Essa Mughal







 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top