create a temp table based on existing table

create a temp table based on existing table

Post by WZHAN » Sat, 11 Jan 1997 04:00:00



Any one knows how to create a temp table based on the information of
existing table. What's the easiest way?

Weiguo

 
 
 

create a temp table based on existing table

Post by Karl Costenbade » Sun, 12 Jan 1997 04:00:00


SELECT * INTO #tmp FROM table_name


> Any one knows how to create a temp table based on the information of
> existing table. What's the easiest way?

> Weiguo

--
Karl Costenbader, President
Competent Consulting
Sacramento, CA

Home Page: http://www.competent.com

 
 
 

create a temp table based on existing table

Post by Neil Pik » Mon, 13 Jan 1997 04:00:00


Weiguo,

Use select into.  If you don't want any rows, just use WHERE 1=0 to ensure that
no rows match.


 Protech Computing Ltd (MS Solution Provider)
 Using Virtual Access 3.52 build 159c (32-bit) on NT 4.0 SP2