On Thu, 21 Jun 2007 01:59:43 +0200, Nina G. wrote:
Quote:
I need to run a simple query like
select fee from charges where code in ('value1', 'value2', ..., 'valueN')
where values are 5 character strings. Is there anything bad in having
between 500 and 1000 values in the value list? |
I'm guessing that you are generating the IN list programmatically. Why not
stuff that data into a temp table, and then join with the main table ?
Michael
--
Michael Peppler - Peppler Consulting SaRL
mpeppler (AT) peppler (DOT) org - http://www.peppler.org
Sybase DBA/Developer - TeamSybase: http://www.teamsybase.com
Sybase on Linux FAQ - http://www.peppler.org/FAQ/linux.html