Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL REPLACE help
Message
De
16/07/2001 15:30:50
 
 
À
16/07/2001 09:50:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00530393
Message ID:
00531179
Vues:
21
>>The UPDATE is not working as I would like. For a different example. Table1 has SSN and LastName. Table2 has SSN and LastName and is used to update LastName in several tables. Not all the records in Table1 will be in Table2 and not all the records in Table2 will be in Table1. If Table1.SSN = Table2.SSN and Table1.LastName = Table2.LastName I want to replace Table1.LastName with Table2.LastName.
>>
>
>VFP's version of UPDATE can't do this. Use REPLACE FOR.
>
>Tamar

That sure seems to be true, Tamar. I guess that since the documentation doesn't explicitly say it can be done, then it is only fair to conclude that it can't, as you state.

BUT, this being a limitation of the current UPDATE - SQL, it sure would be helpful to get an error when one specifies (or tries) something beyond its capabilities.

Maybe you can note this in your next Hacker's publication.

JimN
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform