Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Indexing on multiple fields...
Message
From
09/10/2002 12:57:53
 
 
To
09/10/2002 12:40:18
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00709355
Message ID:
00709373
Views:
14
John,

The key (pardon the pun) is that both fields need to be character type in the index expression for the index to be meaningful. In the index expression (under MODIFY STRUCTURE) you simply put field1+field2 to concatenate them into the key.

If one of the fields is a date, you can use dtos(), for example:
index on cfield1+dtos(dfield2) tag tag2
Creating an index tag containing more than one field does not help for Rushmore purposes. If you need to run queries that involve these fields in the WHERE clause, you need an index on each indivual field for Rushmore to kick in (with regards to those fields).

>up until now i have created indexes when creating the table, but need to create an index on 2 fields and can't find any unconfusing stuff in the help... many thanx!
Steve Gibson
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform