Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rushmore and composite index tag
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01304565
Message ID:
01304573
Views:
20
>
>In VFP 9 they can be used:
>
>CLEAR
>SET DELETED ON
>CREATE CURSOR Test (TBL_ID_FLD C(20),TBL_INT_FLD int)
>INDEX ON TBL_ID_FLD + BINTOC(TBL_INT_FLD) FOR NOT DELETED() TAG Test
>SYS(3054,12)
>SELECT * FROM Test;
>WHERE TBL_ID_FLD + BINTOC(TBL_INT_FLD) LIKE 'asdasdasda%' INTO CURSOR crsTest    && Full
>?
>SELECT * FROM Test;
>WHERE TBL_ID_FLD + BINTOC(TBL_INT_FLD) = 'asdasdasda' INTO CURSOR crsTest        && Full
>SYS(3054,12)
>
You see, in my case most queries would be like this:
SELECT * FROM Test;
WHERE TBL_ID_FLD = 'adadfasd' and TBL_INT_FLD = 2 INTO CURSOR crsTest        && Partial
SYS(3054,12)
Does Partial mean that the Rushmore will only use the TBL_ID_FLD portion of the index tag?
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform