Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Another weird issue with ANSI SQL
Message
De
09/02/2003 01:14:50
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
08/02/2003 00:43:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00750934
Message ID:
00751130
Vues:
19
>>I'm not sure, I understand you. UNION uses all fields to compare records to eliminate duplicates. UNION ALL doesn't compare them at all. It's just joins separate queries results into one record set (cursor).
>
>If it is bound on all fields, then, I don't see the need for it. I would have assumes it would have gone by the first field, as in general, it's the primary key, and that would have done it.

Not necessarily so. The source for the select may be anything - a result from a previous SQL, a XmlToCursor() cursor, a SPT cursor - and there's no way Fox could rely on any key there to be a key of any sort, specially when none of them (nor the regular tables) are required to have indexes of any kind. And it does have the requirement to work in all of those cases - so it has to compare all fields. It has done so since 2.0.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform