Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is this a SHOWSTOPPER bug or what?????
Message
De
25/09/2010 07:48:41
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01482687
Message ID:
01482700
Vues:
124
>Correlated update BUG!!!!
>
>It happens when you alias the table ("y") in the correlated update in FoxPro. If you don't alias the table then FoxPro works correctly.
>

>update junk set d1 = d2 from junk y inner join junk2 on y.id = junk2.id

The issue here is that when you add the alias y in the FROM clause, you're telling the command to USE the table again. So the Junk you're updating is not the same Junk you're joining.

There's no VFP bug here, just a bug in your code.

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

Click here to load this message in the networking platform