select * from table where id in (id1,id2.........long list)
SELECT column_name(s) FROM table_name WHERE column_name IN (value1,value2,...);