Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SPT and Where clause
Message
 
 
À
14/02/2005 14:47:12
Steven Dyke
Safran Seats USA
Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
00986754
Message ID:
00986757
Vues:
18
>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--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform