You could use the ArrayToList function..
That will convert your array to a list and then just select from table
where id in  <cfqueryparam cf_sql_type="cf_sql_number"
value="#myList#" list="true" />

something like that....


On Tue, Apr 22, 2008 at 8:24 AM, Richard White <[EMAIL PROTECTED]> wrote:
> hi
>
>  i have an array of subjectId's. i have a table in my database called 
> subjects with the primary key set as subjectID
>
>  i have 2 other columns called first name and last name.
>
>  i want to be able to get the first names and last names only for the 
> subjects ids stored in my array
>
>  is there a way in mysql or coldfusion to do this without the need of a loop
>
>  or is the only way to loop through the array of subject ids getting each 
> first name and last name one at a time
>
>  thanks
>
>  

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303972
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to