Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SELECT-SQL & Appending...?
Message
From
18/04/2002 16:29:45
 
 
To
18/04/2002 16:17:30
N. Lea
Nic Cross Enterprises
Valencia, California, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00646513
Message ID:
00646596
Views:
18
Hello,

Let's make sure I'm following you here. Are you saying you have an existing table structure, which contains all the fields in your SELECT statement, plus some additional ones?

How about:
*-- DUPLICATE ALL DATA INTO A SQL-STATEMENT FOR TRANSFER --*
SELECT a.inv_no,a.part_code,a.part_desc,b.mold_code,b.mat_code,a.part_qty,a.part_cost ;
    FROM order_items a, part_file b ;
    WHERE a.inv_no = cInvoiceNumber AND a.part_code=b.part_code ;
	INTO CURSOR MySqlCursor
select existingTable1  && I'm assume it is already open
append from dbf("mySqlCursor")
This will work as long as the field names are the same. If they are not the same, you can use the AS clause after each field in the SELECT to give each field a different name.

HTH...

>
>1: I tried that, but did not work because I need to use the structure in the other free table
>
>2: Does that not require a lot of memory. Plus it still overwrites the table structure
>
>3. Overwrites the structure.
Steve Gibson
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform