I want to write a "IN" clause query in jdoQL similar to the given SQL query below.
SELECT salary FROM employee where empId IN (1021,2013,9872);
my objective is that i have a list of email addressess that i would be providing inside the "IN" clause and would need to get the corresponding smtp mail address for each of the email addresses in the jdoQL.
could some one help me out with this? is there any other workaround for this?
thanks in advance for any help provided.
Check this page. Which is very much like this one.
You'll then need something like: empIdList.contains(empId)
Where empIdList
is a passed in List<Integer>
: query.execute(Arrays.asList(1,2,3));