Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Any limit for Select-SQL's IN when using a list?
Message
From
03/10/2003 15:17:24
 
 
To
03/10/2003 14:27:25
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00834930
Message ID:
00834962
Views:
35
Hi Frederico,

I believe, we are talking about VFP here.

Thanks,
Aleksey.


>>>I know that the VFP function INLIST() has a limitation of 24 items in its list.
>>>
>>>Does the SQL-Select IN (I1, I2, I3...) have any limit other than VFP's overall line length limit?
>>>
>>>Thanks
>>
>>Yes, SQL-Select IN (I1, I2, I3...) has the same limit.
>
>
>No it doesn't. e.g. this works just fine - there's 91 items there
>
Use Northwind
>
>select * from Customers where CustomerId in (
>	'ALFKI',
>	'ANATR',
>	'ANTON',
>	'AROUT',
>	'BERGS',
>	'BLAUS',
>	'BLONP',
>	'BOLID',
>	'BONAP',
>	'BSBEV',
>	'CACTU',
>	'CENTC',
>	'CHOPS',
>	'CONSH',
>	'DRACD',
>	'DUMON',
>	'EASTC',
>	'ERNSH',
>	'FISSA',
>	'FOLIG',
>	'FOLKO',
>	'FRANK',
>	'FRANR',
>	'FRANS',
>	'FURIB',
>	'GALED',
>	'GODOS',
>	'KOENE',
>	'LACOR',
>	'LAMAI',
>	'LEHMS',
>	'MAGAA',
>	'MAISD',
>	'MORGK',
>	'NORTS',
>	'OCEAN',
>	'OTTIK',
>	'PARIS',
>	'PERIC',
>	'PICCO',
>	'PRINI',
>	'QUICK',
>	'RANCH',
>	'REGGC',
>	'RICSU',
>	'ROMEY',
>	'SANTG',
>	'SEVES',
>	'SIMOB',
>	'SPECD',
>	'SUPRD',
>	'TOMSP',
>	'TORTU',
>	'VAFFE',
>	'VICTE',
>	'VINET',
>	'WANDK',
>	'WARTH',
>	'WILMK',
>	'WOLZA',
>	'OLDWO',
>	'BOTTM',
>	'LAUGB',
>	'LETSS',
>	'HUNGO',
>	'GROSR',
>	'SAVEA',
>	'ISLAT',
>	'LILAS',
>	'THECR',
>	'RATTC',
>	'LINOD',
>	'GREAL',
>	'HUNGC',
>	'LONEP',
>	'THEBI',
>	'MEREP',
>	'HANAR',
>	'QUEDE',
>	'RICAR',
>	'COMMI',
>	'FAMIA',
>	'GOURL',
>	'QUEEN',
>	'TRADH',
>	'WELLI',
>	'HILAA',
>	'LAZYK',
>	'TRAIH',
>	'WHITC',
>	'SPLIR'
>	)
>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform