Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is the max number of items in IN clause?
Message
From
27/04/2010 11:11:59
 
 
To
27/04/2010 11:02:00
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01462166
Message ID:
01462210
Views:
68
This message has been marked as a message which has helped to the initial question of the thread.
>>Naomi, I question the judgment of this for anything more than a few items.
>Joining against a temp table/table variable/subquery/etc is the way to go.
>
>IIRC In () gets expanded into a cursor in vfp already,
>so I surmise that SQL server and others in this league implement it such as well.
>Under this assumption, the In() way of coding is probably the easiest and most
>portable way to code for things like a filter with a user-defined ad-hoc list of items.
>
>my 0.02 EUR
>
>thomas

I'm not sure what sqlserver's limit is, but I know it will throw a resource error if the list is too long. I know the last version of Oracle I worked with had a limit of 1000 items in a SQL IN list.
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform