Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Updating from multiple tables
Message
De
16/10/2002 10:42:30
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Updating from multiple tables
Divers
Thread ID:
00711730
Message ID:
00711730
Vues:
46
Hey everyone,
I am having trouble finding the correct code to update from multiple tables. I am afraid that the SQL commands I am trying do not work on a FoxPro database. The commands I am using are as follows:
UPDATE a_prempt;
SET payrate = a_prempl->regpay ;
FROM a_prempt ;
INNER JOIN a_prpay ;
ON a_prpay->paytype = a_prempt->paytype ;
WHERE a_prempt->prempl = a_prempl->prempl ;
AND a_prempt->emprate = .t. ;
AND a_prpay->payclas like "%REGULAR%"

Is there a way in FoxPro that I can write a similiar update statement. Every way I have tried won't compile due to errors. If it helps, the compilation errors occur on the "From" line. Thanks.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform