CREATE TABLE #tmpSomething
) with one field, which will be the primary key, fill it using INSERT INTOs and join that table with MyTable. Just don't forget to DROP TABLE
once you're done!SELECT * FROM MyTable >WHERE MyVar IN (var1,var2,var3,....varN)