Forum Discussion
pflaumengeist
13 years agoContributor
why don't you simply iterate through your item_list?
item_list = ['value 1', 'value 2', 'value 3', 'value 4']
query = 'SELECT * FROM foo WHERE item IN ('
item_list.each{
query += it + ','
}
query = query[0 .. -2] + ')'