Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SELECT-SQL & Appending...?
Message
De
18/04/2002 16:29:45
 
 
À
18/04/2002 16:17:30
N. Lea
Nic Cross Enterprises
Valencia, Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00646513
Message ID:
00646596
Vues:
19
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform