Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Handling Deleted Records
Message
 
À
20/07/2000 17:58:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00395145
Message ID:
00395153
Vues:
12
In general, you should never have a situation where you are attempting to insert a duplicate unique key. You can make sure of this by maintaining a table of keyvalues for your tables and call a routine to get the next available keyvalue for a particular table. If you want to reuse deleted records you can set deleted off and scan for the first deleted record, then do a recall and replace all the fields except the key or whatever else you want to keep. If there are no deleted records available, get a new keyvalue and insert.
Eric Kleeman - EDS Consulting Services
MCP Visual FoxPro
MCSD C#.NET
Hua Hin Thailand
Los Angeles California
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform