Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Desc and order by on VFP9
Message
De
03/05/2005 10:09:26
 
 
À
03/05/2005 09:53:00
Jim Winter
Jim Winter Consulting
Hinesburg, Vermont, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP1
Database:
Visual FoxPro
Divers
Thread ID:
01010444
Message ID:
01010451
Vues:
30
>>Hi all,
>>I find a strange behavior using 'DESC' and 'order by'. i.e. 'select lastname,firstname from myfile into cursor mycursor order by lastname,firstname desc' do not work. without 'desc' or without 'firstname' (with only one order by) it works.
>>Some suggest?
>>Thanx
>
>Francesco,
>
>You need to use the DESC keyword for each field that you want that order on. So,
>
>SELECT LastName, FirstName ;
>  FROM MyFile ;
>  INTO CURSOR MyCursor ;
> ORDER BY LastName DESC, FirstName DESC
>
>should do the trick.
>
>Regards

Thanx, I got a mistake.
Bye
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform