Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Select with memo fields
Message
From
02/04/2015 08:05:15
 
 
To
01/04/2015 17:14:15
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01617666
Message ID:
01617688
Views:
73
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform