Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Merging vfp table structures
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01390885
Message ID:
01390887
Views:
57
>Hi all,
>I need to create an empty cursor from multiple table structures.
>I was about ready to create some code using afields, ascan and alter table
>But I sure this is simple a SQL ?
>
>Any help? thanks.
SELECT *;
FROM Table1;
INNER JOIN Table2 ON 1=1;
......
WHERE 1=0;
INTO CURSOR crsTest READWRITE
But if you have fields with the same names across tables, you better use field list instead of [*] in SELECT.
Also I am not sure if READWRITE is available in VFP7.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform