Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Selecting records IN a table without using SELECT - SQL?
Message
De
15/09/2003 21:21:40
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
15/09/2003 20:56:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00829200
Message ID:
00829208
Vues:
25
>i have set filter to shift="A" for my employee table..
>
>i want to set filter to shift="A" for my dtr table..
>
>problem is dtr table doesn't have the shift field.. it only have the empno filed which is also in employee table..
>
>i do this by using the SELECT - SQL..
>
>USE EMPLOYEE
>SET FILTER TO SHIFT="A"
>
>SELECT * FROM dtr ;
> WHERE empno IN (SELECT empno FROM employee WHERE shift="A") ;
> INTO CURSORY mySelect
>
>
>but how do i do this without using SELECT - SQL?
set filter to SHIFT="A"
copy to mySelect
select 0
use mySelect
This, however, creates a table. You don't really need a filter for this; you can "copy ... for {your filter expression here}".

If you don't want to have a table on disk, you can create a cursor with the fields you need and append:
create cursor mySelect ({fields here})
append from dtr for SHIFT="A"

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform