Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is missing
Message
From
25/05/1999 07:16:29
 
 
To
25/05/1999 06:50:23
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00222382
Message ID:
00222393
Views:
22
>I want to create a new table using all fields of another table
>
>create table products_tmp as;
>select * from products_tbl
>
>The syntax is wrong ????????
>I am working from an ansi standard sql book and I'm stuck !!!!!!
>
>any sample code of other sql basic commands would be great and save me many frustrating hours.
>
>Best wishes
>Colette

One way to do it is to use:

SELECT * FROM products_tbl INTO TABLE products_tmp

If you want the tbale to be empty:

SELECT * FROM products_tbl INTO TABLE products_tmp WHERE .F.

Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Previous
Reply
Map
View

Click here to load this message in the networking platform