onde o ID está na lista sql
select * from table where id in (id1,id2.........long list)
Simone Corbelli
select * from table where id in (id1,id2.........long list)