Quantcast
Channel: Adobe Community : Popular Discussions - ColdFusion
Viewing all articles
Browse latest Browse all 14291

SELECT IN query using ormExecuteQuery()

$
0
0

I'm trying to do a SELECT IN query using ormExecuteQuery().  Following is the code I have:

 

Categories = ormExecuteQuery("from Category where Id IN (?)",[CategoryList]);

 

It only works when there is 1 value in the CategoryList.  i.e. This works:

 

Categories = ormExecuteQuery("from Category where Id IN (?)",[9]);

 

This DOES NOT work:

 

Categories = ormExecuteQuery("from Category where Id IN (?)",[8,9,10]);

 

Help would be greatly appreciated.


Viewing all articles
Browse latest Browse all 14291

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>