Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can select records where in a cursor
Message
De
05/02/2002 11:38:16
 
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:
00615537
Vues:
18
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform