Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
IN filter condition
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00765781
Message ID:
00765790
Vues:
14
Hi Hans,

>Hello everybody,
>
>can anybody tell me if the number of elements that you put after the IN filter condition in an sql select (select * from table where field in (element1, element2, ...))is limited ?

It's limited to 24 items.

>And another quesion, I know you can put an sql select after the IN clause (... where field1 in (select field1 from table2)) but can you also give the name of an array ? And if so, how is the syntax?

You cannot use array in IN opearator but you can use ASCAN instead.
SELECT ...
  WHERE ASCAN(laMyarray, field1) > 0 ;
  ....
>
>Hans
>
>PS: I'm (still) using VFP 5.0
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform