Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can select records where in a cursor
Message
From
05/02/2002 11:38:16
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00615512
Message ID:
00615537
Views:
17
This message has been marked as a message which has helped to the initial question of the thread.
Roi,
As Mark said, you could build an IN clause if the number of possible values are limited. Instead of a sub-query, you could achieve the same result with an INNER JOIN.

>Is is possible to use a cursor as the IN clause of the where clause of a select statement?
>
>I have the following now:
>
Create Cursor Tasks (taskID I)
>Append From Array thisform.snptaskrange1.selecteditems
>	
>** now build the real cursor
>Select * ;
>	from rsAllWos ;
>	where fk_task_id in (select * from tasks) ;
>	into Cursor rsWoTaskSubset
>
>
>Is there some way to do:
>
where fk_task_id in (tasks)
Daniel
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform