SyntaxFix
Write A Post
Hire A Developer
Questions
You may try to use the following form:
select * from table1 where ID in (1,2,3,4,...,1000) union all select * from table1 where ID in (1001,1002,...)