LIST_OF_IDS is a single value. So the query would be the same as:
Code:
SELECT * FROM employee WHERE id = '1,2,3'
I think this is not really what you want. You want to test for "id = 1 OR id = 2 OR id = 3". For that, you will have to construct the whole statement in the string and execute it dynamically. If you think about it, it makes a lot of sense. If you would have a long IN-list, DB2 may be better of using a different access plan than for a point query (with just a single element in the IN-list).
Another alternative is to store the desired IDs in a separate table and then do:
Code:
SELECT * FROM employee
WHERE id IN ( SELECT id FROM other_table )
Yet another approach would be arrays. (Depends on your DB2 version and platform.)