Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can select records where in a cursor
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00615512
Message ID:
00615634
Vues:
16
>>>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, ...)

Yep, I had thought about that but there are potentialy hundreds of values in the list of Tasks. Using "where in" is working fine.
Roi
'MCP' Visual FoxPro

In Rome, there was a poem.
About a dog, who found two bone.
He lick the one, he lick the other.
He went pyscho, he drop dead!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform