Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Last NN entries
Message
De
10/05/2000 09:43:48
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00368038
Message ID:
00368080
Vues:
26
>Kev,
>If your PK is sequential (integer or character), you could use the TOP clause of the SQL Select command after ordering it by PK descending. If you are looking at modifications as well as insertions, then you would have to introduce some type of auditing feature to your tables. Take a look at FoxAudit at www.takenote.com.

Isn't this a rather dubious use of the PK, I thought the prevailing view was that regardless of how you implemented the PK, you should not assume any particular value. The PK is used to joins tables & nothing else.

I could be wrong here & that this is a valid use for sequential PK's, I would be interested in any views on this, being in 2 minds (or more) over use of existing unique fields as PKs or maintaining separate PKs (probably sequential).
Mike

"I can live with doubt and uncertainty and not knowing. I think it is much more interesting to live not knowing than to have answers that might be wrong." - Richard Feynman
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform