Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Last NN entries
Message
From
10/05/2000 09:43:48
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00368038
Message ID:
00368080
Views:
25
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform