Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Multi-column indexes without conversion to text equivale
Message
 
À
08/02/2001 15:15:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00474159
Message ID:
00474189
Vues:
25
Depending on how you intend to get at the information, you may be able to use SQL which works this way by default. You would have tags on each field then use the ORDER BY clause to indicate the proper order. This also won't be as picky about construct when finding records.

EX:

SELECT * FROM MyTable ORDER BY ID,SOMENAME,SOMEDATE ......


Bob



>Is there a way to specify a multi-column index expression with columns of differing data types without doing a type-conversion operation?
>
>Example: Table has columns:
>
>id       N(4)
>somename C(20)
>somedate D
>
>
>And I would normally make a multi-column index expression such as this:
>
>
>index on str(id)+DTOC(somedate,1) to blah
>
>
>This strikes me as being inefficient, since the DTOC() and STR() functions would need to be run on the column data, and I am wondering if you can do this another way.
>
>Thanks
'If the people lead, the leaders will follow'
'War does not determine who is RIGHT, just who is LEFT'
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform