Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Replace a field in a table using a master table
Message
De
19/04/2000 15:18:51
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
19/04/2000 15:00:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00361486
Message ID:
00361507
Vues:
19
>Hi,
>>I'm trying to update a field in a table using another tables field.<
>>If I were to write it out in code it would sound like this <
>
>> SELECT CLIENT, POLICY <
>> I'd set the relationship between the to fields as SSNumbers. <
>> I'd then issue <
>> replace all policy.group_code with client.group_code ;<
>> for POLICY.SSNUMBER = CLIENT.SSNUMBER <
>> IN VFP, HOW DO YOU WRITE THIS EXPRESSON, IS IT UPDATE FOR OR <
>> REPLACE ALL ? <
>> pLEASE HELP <
>> JOHN<


John,
In VFP you can do it in a zillion ways :) A simple one is :
select policy
replace group_code with client.group_code ;
  for seek(policy.SSNUMBER,"client","SSNUMBERTag")
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform