Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select oldest record
Message
De
18/09/2007 15:58:09
 
 
À
18/09/2007 14:53:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01255231
Message ID:
01255271
Vues:
11
>does SELECT support a parameter that would allow the selection of the single oldest record in the table? Something like
>
>select min(datetimefield) from mytable
>
>but retrieving all the fields?
>
>Thanks
SELECT TOP 1 * FROM mytable ORDER BY datetimefield
You can ORDER BY datetimefield DESC to get the latest record.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform