Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Deleting records
Message
 
À
26/01/2001 14:54:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00469178
Message ID:
00469193
Vues:
12
>Hello,
>In a table, I am deleting records with a field called "press",
>i.e. delete for machines where press = deletepress
>
>Later on down the line, if the user decides to add the machine back in, I get
>an error "uniqueness of machine is violated" even though, when I browse the table, that machine appears to no longer be present.
>
>Help?
>Thanks in advance.

Hi Joseph,

Is machine your unique key field? The key must be unique including the deleted records, as they still stay in the table. You should consider using the surrogate (meaningless) keyfield for your Primary key.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform