Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Select with memo fields
Message
De
02/04/2015 08:05:15
 
 
À
01/04/2015 17:14: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:
01617688
Vues:
72
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform