Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Any limit for Select-SQL's IN when using a list?
Message
De
03/10/2003 14:27:25
 
 
À
03/10/2003 14:09:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00834930
Message ID:
00834944
Vues:
36
>>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'
	)
Insanity: Doing the same thing over and over and expecting different results.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform