Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Replace a field in a table using a master table
Message
De
20/04/2000 09:44:17
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
19/04/2000 18:31:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00361486
Message ID:
00361760
Vues:
15
>Hi Cetin,
>I used the sample you gave me :
>
>> SELECT POLICY <
>> REPLACE group_code with client.group_code ; <
>> for seek(policy.ssnumber, "client","ssnumberTAG") <
>> Placed this code on a form in a command button, it runs very slow. <
>> Could you give me another sample ? <
>
>> Thanks <
>> John <


Very slow ? Generally these type of updates are "run once" type things. Might it be that in fact you only need to update just one per click ? This would whole policy table from top to bottom. If just one then it would be :
REPLACE group_code with client.group_code ; 
 for policy.ssnumber = client.ssnumber ;
 in "policy"

* Or Update - SQL
update policy ;
 set group_code = client.group_code ;
 where policy.ssnumber = client.ssnumber
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