Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Primary and Candidate
Message
De
02/08/2001 18:19:53
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
02/08/2001 14:05:19
Walter Meester
HoogkarspelPays-Bas
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00538812
Message ID:
00539129
Vues:
12
>Renoir,
>
>>I actually started using a unique integer table-driven primary key for my tables not too long ago (thanks Vlad!). What's the best way to ensure uniqueness in my candidate keys?
>
>A filtered candidate index (INDEX ON MyCandidate TAG MyCandidate FOR !DELETED() CANDIDATE)
>
>Walter,

Quite important, this part. I completely forgot it. IF you use surrogate keys (auto-incremented), a filter is irrelevant. But for candidate keys, the filter has to be included.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform