Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to use generated primary keys ?
Message
De
09/05/2000 09:30:32
 
 
À
08/05/2000 13:48:19
Walter Meester
HoogkarspelPays-Bas
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00367063
Message ID:
00367597
Vues:
49
Walter,

>Yes, it works but (as i did describe in problem 3), not in all cases. Besides this I simply think it is wrong to use the Uniqueness violation as an argument to never reuse PKs. It is a fact that this problem only exist when not using filtered primary indexes. Outside the xBase language this problem does NOT exist !!

Considering that every DBMS system has it's own specifics, I don't see a problem. For example, while in SQLServer you can SELECT @@Identity, it doesn't work in VFP or Access. I don't know about Oracle. This doesn't make it wrong.

As for reusing PK, whenever I had a client who fell on that problem meant that the PK wasn't really unique after all.
Sylvain Demers
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform