Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Select with memo fields
Message
De
06/04/2015 14:35:14
 
 
À
02/04/2015 08:05:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01617666
Message ID:
01617825
Vues:
41
>The following code does not work.
>
>
>SELECT 'A', * FROM \pro50\apdata\apvend18 vv ;
>WHERE vendno = '000463' ;
>INTO CURSOR curAdds
>
>SELECT 'D', * FROM \pro50\apdata\apvend18 vv ;
>WHERE vendno = '000687' ;
>INTO CURSOR curDeletes
>
>SELECT * ;
>FROM curAdds;
>UNION ;
>sele * ;
>FROM curDeletes;
>INTO CURSOR zzzz
>

>
>I may be mistaken here, but, off the top of my head, wouldn't this query do the job?
>
>
>SELECT ICASE(vendno = '000463', 'A', vendno = '000687', 'D', ' ') AS MyField, vv.* ;
>FROM \pro50\apdata\apvend18 vv ;
>WHERE INLIST(vv.vendno,  '000463',  '000687')
>INTO CURSOR zzzz
>
Yes it would, but I was just trying to illustrate a larger problem I had where I was forced to use UNIONs
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform