Or use a subselect if you can

  _____  

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf
Of Zac Spitzer
Sent: Monday, 1 September 2008 5:46 PM
To: [email protected]
Subject: [cfaussie] Re: cfqueryparam list


there are limits, 2000 is a lot of data to pump into a query.

try inserting your values in to a temp table and refer to that instead,
or try   "the_id in  ( first_100 ids) or the_id in  ( second_1000 ids)"

z


On Mon, Sep 1, 2008 at 5:36 PM, Leroy <[EMAIL PROTECTED]> wrote:



Hi,

I am wondering if anyone has came across similar problem when using
cfquery and cfqueryparam with list. If my list is more than 2000
elements, it fails.

<cfquery name="testLoop" datasource="dsn">
SELECT *
FROM table
WHERE the_id IN (<cfqueryparam value="#valueList(list.the_id)#"
cfsqltype="CF_SQL_INTEGER" list="true" />)
</cfquery>

Thanks for your help!
Leroy






-- 
Zac Spitzer -
http://zacster.blogspot.com (My Blog)
+61 405 847 168





--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to