Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Primary Keys when deleted can't be reused untill pack
Message
De
07/05/2000 03:50:34
Walter Meester
HoogkarspelPays-Bas
 
 
À
06/05/2000 20:06:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00367026
Message ID:
00367061
Vues:
17
Gary,

In addition to what Evan and Craig said, the real problem lies in the fact that DELETED() records are still stored in the table. This is exclusively (that I know of) a xBase problem.

I'm not that fond of using generated key's in every table (though it has got its use in most tables). I believe there are cases where generated key's do not make sense at all, So if you think you've got a good reason to use a intelligent primary key, the best you can do is add a index filter 'FOR NOT DELETED()' and add another regular index on the same expression without a filter to take advantage of rushmore.

Walter,


>How are developers handling the problem where a primary key and data record is added to a table. The user decides to start the record over so they delete the record. When they start to add the record again with the same key, they will get a duplicate key message because the key, although deleted, is still in the index, until I pack the file. One idea would be to change the key when I delete the record. Is there a better approach anyone is using.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform