Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Inlist() woes
Message
 
 
À
04/03/2002 14:35:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00627988
Message ID:
00628053
Vues:
11
Hi Amanda,

SET ANSI is the setting for SQL, but I think, you should just use the second SQL, e.g.
SELECT * from ... where INLIST(myField,"MyVal1","myVal2")..., where myVal1 and myVal2 have length of the field, e.g. "padred" with necessary number of spaces.

>Hi all!
>
>My problem with inlist() is .... well here's an example
>
>Select * from dline where inlist(cde_tooth, '14', '1')
>
>I get any tooth code that starts with a 1. I did some searching here on UT and found the solution of SET EXACT ON. So, I tried that. Didn't work.
>
>The cde_tooth field is c(2). And if I modify my code to
>
>Select * from dline where inlist(cde_tooth, '14', '1 ')
>
>then I get the correct results, just 14's and 1's. That shouldn't be like that though, should it? Maybe I'm missing something....
>
>
>thanks in advance!
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform