Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Index on DATETIME() fields
Message
 
To
01/12/2008 17:31:46
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01364954
Message ID:
01364986
Views:
12
>I have two fields that are DateTime(). What is the best way to index them? I have tried:
>
>INDEX ON TRANSFORM(Field01) + TRANSFORM(Field02) ASCENDING TAG Temp
>
>But they don't seem to order correctly. I would also like the index to be as efficient as possible.

Jay, I use dtos(datefield), because it puts it in order by year/month/date. The dtoc() gets it into a string but the order may be a little strange because the year is last.
Linda Harmes
HiBit Technologies, Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform