Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Selecting the last match
Message
De
18/06/2001 06:21:33
Jimi Lee
Pop Electronic Products Ltd.
Hong Kong, Hong Kong
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00520445
Message ID:
00520496
Vues:
20
Hi Garrett,

Thanks for the reply, but how if my table is in fox2x format? I tried your suggestion but it still come out with the first match record..

Please help! thanks a lot!


>>hi all,
>>
>>I have this query:
>>
>>Select a, b, c from MyTable;
>>  into array MyArray;
>>  where a=MyKey
>>
>>
>>If there are serveral matches in the table, how should I modify this query in
>>order to get the last matched one?
>
>One way to do this would be to use the TOP 1 and the ORDER BY myField DESCENDING clauses.
error(503): file structure failure, signature file corrupted.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform