Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Primary Index
Message
De
10/12/1999 09:14:34
Paul Frost
Instem Computer Systems Ltd
Stone, Royaume Uni
 
 
À
07/12/1999 21:18:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00300125
Message ID:
00301625
Vues:
38
>>I have a large table. It is indexed with a primary key. The table holds the current location of an engineering drawing in the sign-off cycle. I have a form that points to this table and gives the user the location info. At some point in a given time period the drawing can be released and the next revision level can be issued. My problem comes in when I try to put a new record with a drawing number that already exists. I mark the old record for delete but a pack is not possible until all the users log off. Even though the old record is marked for delete I still get a violation error. Thanks.
>>
>>God Bless,
>>S. Dyke
>
>By definition, primary keys are never reused. I recommend surrogate keys. There is a more complete discussion in the KB article on my web site.

This might be simplistic & I'm probably missing some important point, but rather than add a new record & delete the original - could you not simply overwrite the original. That way the primary key remains unchanged & there's no need for surrogate keys.

Please let me know why this idea is wrong - I profess to being a beginner at this & need to learn.

Paul.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform