Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need to get to the end of a table
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00807680
Message ID:
00807955
Vues:
16
Hi Kelly,

I always (well, almost always) make my PK an integer field - usually an auto-incriment integer. To get the identity of the "last" record, I do something like:

"Select Max(PKField) from Whatevertable"

This way you can get the identity of the last record in a table and do further processing based on that ...

Al

>That being the case how could I mimic those commands. Or would it be of any value?
>
>Kelly
Al Williams

Anola MB, CANADA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform