where id is in list sql 1

where id is in list sql

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

Here is what the above code is Doing:
1. It is creating a list of ids
2. It is then converting the list into a string
3. It is then adding the string to the query
4. It is then executing the query

Similar Posts