Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SET Order to two fields?
Message
De
28/08/2003 15:29:16
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
28/08/2003 15:25:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00824334
Message ID:
00824339
Vues:
21
>Is it possible.
>I want to order by a field nad inside that another filed, just like
>select-sql SELECT ...WHERE...ORDER BY 1,2
>
>Thanks!
>Pablo

SET ORDER sets the order to an index, not a field. And the index can be on any expression, including more than one field.

For instance:
* Define structure: only once
use cliente
index on apellido + nombre tag nombres
use

* Use the data, every time you use your program
use cliente
set order to nombres
HTH,

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform