colimns" iTeaQty,iTeaAmount,iCoffeeQty,iCoffeAmount,iAccid
how can we create a temporary table in sql server 2005
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jose Padro169 reputationPosted Dec 1, 2013, 8:03 AM EST
Abhay ShankerRank #375 · 6.7K reputationPosted Dec 1, 2013, 5:34 PM EST
CREATE TABLE #tblTemp(
iTeaQty int,
iTeaAmount decimal ,
iCoffeeQty decimal,
iCoffeAmount decimal,
iAccid int
)
Girish Sapariya159 reputationPosted Dec 2, 2013, 12:09 AM EST
While creating table use '#' before the name of table. That will create your temporary table
e.g
Create Table #temp (
ID int,
Name varchar(20)
);
Hope this will help
Thanks