Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IDX indexes
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01167343
Message ID:
01167378
Views:
7
>>What if you change the IN for INLIST()?
>>>Actually, it was my mistake. Somehow I lost NOT before IN...
>
>I think both should be equally optimized, right? IN and INLIST are intechangable...
>
>I'm using VFP8 SP1 for this application...

Not sure about IN, but I am sure about INLIST for it is said so in the help (I could not find the same for IN, but did not look too much)
A basic optimizable expression has the following characteristics: 

eIndex exactly matches the expression on which an index is constructed.

eExpr is any expression and can include variables and fields from other unrelated tables.

relOp is one of the following relational operators: <, >, =, <=, >=, <>, #, ==, or !=. You can also use the ISNULL( ), BETWEEN( ), or INLIST( ) functions (or their SQL equivalents such as IS NULL, and so on).

You can use BETWEEN( ) or INLIST( ) in the following two forms:

  Copy Code 
BETWEEN(eIndex, eExpr, eExpr)
 

-or-

  Copy Code 
INLIST(eIndex, eExpr [, eExpr, eExpr, ...])
 
Although it says there (or their SQL equivalents such as IS NULL, and so on) so you might be very well right
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform