I have a simple table with about 200k unique IDs. Now I want to check a list (3k-10k) of IDs against the table and get thoose IDs from the list which are not in the database (very few).
I coud use:
SELECT ids FROM table WHERE ids IN(id1,id2,id3...list_of_IDs_end)
But this would give me the IDs from the list which are in the db.
I could do extra programming, but is there a sql only solution?
Did you try:
If you can, you could put your list in a temporary table and use: