Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
UPDATE not working
Message
 
À
27/08/2008 15:49:15
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01342335
Message ID:
01342340
Vues:
15
>What is wrong with this? It replaces all the dates in covr with the same one, probably the first one in the patient table. I can do this in multiple lines with RELATION, but I need it to be one line.
>
>update covr set covr.ph_dob = patient.ptdob where ALLTRIM(covr.pat_no) = ALLTRIM(patient.ptpn)
>
I think you need something more like..

update covr set covr.ph_dob = (select patient.ptdob from patient where ALLTRIM(patient.ptpn) = ALLTRIM(covr.pat_no) )
____________________________________

Don't Tread on Me

Overthrow the federal government NOW!
____________________________________
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform