Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Primary Index
Message
 
À
05/04/2001 17:29:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00492553
Message ID:
00492557
Vues:
21
Uniqueness is enforced across deleted records also. The setting of SET DELETED ON doesn't make any difference. The reason for this is because a deleted record can always be RECALLed.

This is another argument for "surrogate" keys. In other words, your primary key should be a meaningless key used behind the scenes and not "seen" by the user. Your current id field you're using can either have uniqueness enforced by code in the form that you're inputting data with, or else you can create a candidate key with a NOT DELETED() condition placed on it.

--Brad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform