Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Uniqueness of index violation
Message
De
19/09/1997 22:18:21
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
10/09/1997 19:00:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00049180
Message ID:
00050834
Vues:
34
>I thought that an neforced unique key was just that... an enforced unique >key. Can anyone clear this up for me? > >I guess its a bit like driving a car. You *could* drive on the other side >of the road if you wanted to, even though you know you shouldn't. > >I see Primary/Candidate indexes in rahter the same way - there are things >you *CAN* do, but it doesn't mean you should do them. OTOH, PK for !deleted() should not be allowed nor made possible ever. It allows for creating a record with a key which is equal to a key of a deleted record, so we don't have problem of keys which appear to appear nowhere in the table but are impossible to use, because some deleted record keeps it. But then, we have the opposite problem: what will happen if we try the Recall the deleted record? We'd have the same PK violation again, and we probably would have to either drop the key or forget about the deleted record.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform