Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing List Parameter
Message
From
21/06/2001 20:41:15
Gavin Reid
L & M Marketing Pty Ltd
Frenchs Forest, Australia
 
 
To
21/06/2001 20:02:42
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00522175
Message ID:
00522232
Views:
8
Hi Edgar,

How about:
SELECT * ;
    FROM mytable ;
    WHERE myfield IN ( SELECT keyfield FROM paramtable )
Hope this helps,
Gavin...

>You're right. Is as simple as typing it like that.
>Well, I guess I got more confused in this instance, thinking about something I wanted to do couple of weeks similar to this.
>I had in one table values like:
>1
>2
>3
>4....and so on
>
>I wanted to read wherever mixed numbers where coming into the WHERE IN.
>Since there where coming from a table if I put them into an array it would not work in the IN(...) and I did not want to type it up like we are doing here.
>So the how would you do that? I mean, read it in a 'linear' format instead of columnar.
>Does this makes sense or am I confusing you too?
>
>Thanks for answering Gavin
>
>
>Hi Edgar,
>>
>> How about:
>>
>>
>>cParList = "('A','B','C','D')"
>>
>>DO MyProg WITH cParList
>>
>>PROCEDURE MyProg
>>
>>LPARAMETERS pcParList
>>
>>SELECT * ;
>>    FROM mytable ;
>>    WHERE myfield ;
>>    IN &pcParList ;
>>    INTO CURSOR mycursor
>>
>>
>>Hope this helps,
>>Gavin...
>>>>How do I do this?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform