Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Indexes: how is it used in SQL SELECTs?
Message
From
20/12/2001 11:55:22
 
 
To
20/12/2001 11:51:04
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00596834
Message ID:
00596835
Views:
19
Inge,

In these 2 cases, the indexes are used. Lookup 'Rushmore Optimization' in help to learn more about how it works...

>I have a table called myTable in a database called myData. myTable has a structural (primary) index called ID on field ID, and another (regular) index called LASTNAME on field LASTNAME. In this SQL statememt:
>SELECT * FROM myTable WHERE id='0125'
>is the ID index automatically used, or do I have to specifically specify that I'd like it to use the ID index?
>How about:
>SELECT * FROM myTable WHERE id>'0125' ORDER BY LASTNAME :
>both ID & LASTNAME index automatically used?
>Thanks all!
Steve Gibson
Previous
Reply
Map
View

Click here to load this message in the networking platform