Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is the max number of items in IN clause?
Message
De
27/04/2010 11:12:51
 
 
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 9 SP2
OS:
Vista
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01462166
Message ID:
01462211
Vues:
40
This message has been marked as a message which has helped to the initial question of the thread.
>>I seem to recall that Calvin said that the limit was removed in an earlier version, and now depends on the amount of RAM. However, the error message "Statement is too long" is probably shown because the whole statement is too long???
>>
>No.
>
>It is indeed a limit of 159 items in the list. The string itself is not long. Can you test it with your table?

158 is fine, 159 gives an error. I found this in help under SQL Language Improvements :
Number of arguments in an IN( ) clause - Visual FoxPro 9.0 removes the limit of 24 values in the IN (Value_Set) clause for the WHERE clause. However, the number of values remains subject to the setting of SYS(3055) - FOR and WHERE Clause Complexity. For functionality changes concerning the IN clause, see Changes in Functionality for the Current Release.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform