Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Primary or Candidate key error
Message
De
15/07/1998 16:31:56
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00117820
Message ID:
00117830
Vues:
15
>Anyone have any good ideas when a user adds a new record to a table, that has the same primary/candidate key of a previously deleted record.

You can diversify your approach:
1. Use surrogate (sequentially increased) keys.
2. Recycle deleted records, i.e. if you hit deleted key, recall this record replacing values.
3. Completely eliminate this situation when you delete a record, i.e. shred all key field values to some values which will never exist in real records, e.g. change positive values to negative etc.
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform