Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Primary keys and candidate keys
Message
De
06/09/2000 18:08:59
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Primary keys and candidate keys
Divers
Thread ID:
00413219
Message ID:
00413219
Vues:
67
Hi everyone,

One solution to avoid duplicate keys when you delete a record and add a new one with the same ‘business key value’ is to use surrogate keys (integer values).

But, if i want to enforce unique values for my business key (Ex: social security number) using candidate indexes, i find that problem again: Duplicate keys.

Any workarounds? I have been updating ‘business key fields’ with negative random values after deleting the record. It works, but it’s a strange trick, isn’t it?

How do you solve this?

Thanks,


Juan Carlos Jaramillo.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform