Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can select records where in a cursor
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00615512
Message ID:
00615616
Views:
12
>>Nope. The only alternate is to put all the possible values there:
>>
>>in ('val1', 'val2', ...)
>
>OK. Is there any documention on what you can put in there? Like the IN, EXISTS, ALL, and ANY or SOME? The select-sql topic in doesn't mentioned any of them, and the HG mentions but doesn't explain how they work.

I liked the JOIN solution better, but you have to put actual values there and no wildcards. This is the same as doing:

where field1 = 'val1' or field1 = 'val2' or ...

which is the same as VFPs inlist(field1, 'val1', 'val2', ...)

You should be able to do:

in (?lcVal1, ?lcVal2, ?lcVal3, ...)
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform