Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL equivalent to VAL
Message
De
16/05/2006 18:01:49
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01122472
Message ID:
01122481
Vues:
13
Can Cast() be used in a Where clause as in the following example? The deptid field is defined as char(6). When I execute the following nothing is returned but if I remove the where clause records are returned? What am I missing? Is there a better way to do this?


lnRetVal = SQLEXEC(lnConnHandle, "SELECT prempl, jobid, taxterr, empllast, deptid FROM dbo.prempl Prempl WHERE CAST(deptid) AS decimal(6,0)) < 103 or CAST(deptid) AS decimal(6,0)) > 103 ","lReport")
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform