sql where id from 1 to 5 code example Example: where id is in list sql select * from table where id in (id1,id2.........long list)