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 10:23:10
 
 
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:
01462189
Vues:
66
This message has been marked as a message which has helped to the initial question of the thread.
>Hi everybody,
>
>Did anyone find a maximum number of items you can use with select .. Item IN (...) clause?
>
>The limit seems to be 159 items before it gives SQL: Statement too long (Error 1812).
>
>Thanks in advance.

In VFP 8 and earlier, 26. In VFP 9, it's based on SYS(3055).

But as Mike said, put the items in a cursor and don't worry about it.

Tamar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform