Categories
Mastering Development

How to format ids for a SQL query (need quotes around and commas in between)

I have a list of IDs that I want to put in a SELECT query such as id in (‘1′,’2’,’3’…etc) The list is: 32563 32653 32741 33213 539489 546607 546608 546608 547768 1160546 1200461 1202015 1202762 1203537 1203931 1204392 1204393 1204416 1204719 1204819 1205057 1205095 1205168 1206028 1206186 1206224 1227189 1302636 1316358 1336567 1360386 1378275 […]