Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SPT and Where clause
Message
 
 
To
14/02/2005 14:47:12
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00986754
Message ID:
00986757
Views:
17
>I need to get a set of records from an as400 data base using SPT. I would like to use two fields in my Where clause but I can't seem to get it to work.
>
>My SQL statement is:
>jn = "'MES4000CHI'"
>"Select * From webprddt6.drawmstrp Where dm_job_order + dm_customer = " + jn
>
>Or would it be better to get the records matching the dm_job_order, which works, and do do further filtering on the cursor?

Split job_order and customer
m.jo = "MES4000"
m.cs = "CHI"
[Select * From webprddt6.drawmstrp Where dm_job_order ='] + m.jo + ;
      [' AND dm_customer = '] + m.cs + [']
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform