Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select-SQL IN() behavior
Message
De
22/05/2003 14:42:23
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00791797
Message ID:
00791834
Vues:
24
This is a reply after my first reply. I can't use the "$" because
my field is numeric which makes this condition incorrect:
x='11,12,13'
y=1
? transform(y)$x && .T., which is not correct for my criteria.
>Use this instead:
>select * from test where iif(empty(x),.t.,f1$x)
>select * from test where iif(x='none',.t.,f1$x)
>
>>Is this normal VFP (7 or 8) Select-SQL behavior?
>>
>>create cursor test (f1 i)
>>for i = 1 to 10
>>	insert into test values (i)
>>endfor
>>x='1,2,3,4,5'
>>*!*	x=''  && uncomment to cause an error
>>select * from test where iif(empty(x),.t.,f1 in (&x))
>>*!*	x='none'  && uncomment to cause an error
>>select * from test where iif(x='none',.t.,f1 in (&x))
>>
ramil
~~ learning to stand still
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform