Check out example codes for "where id is in list sql". It will help you in understanding the concepts better.

Code Example 1

select * from table where id in (id1,id2.........long list)

Learn ReactJs, React Native from akashmittal.com