Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Appending record in table when key changes
Message
De
18/11/2005 06:08:34
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01070099
Message ID:
01070117
Vues:
13
>I have about 1000 records in a table ordered by the mainkey field. i.e.
>
>
>Mainkey
>---------
>Neil01    Cutting
>Neil02    Costing
>Neil02    Made
>Neil02    Sent
>
>
>everytime the mainkey changes when I scan down the table I want to append a record in another table with the value of mainkey.
>
>How can i do this easily??

VFP9:
insert into OtherTable ;
 (fieldName) ;
 select distinct MainKey from thisTable
PS: I also prefer 'scan...endscan'.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform