I have several values, generated from PHP. Like 1, 10, 15, 17, 20.
Also I have a table with several values, like:
id
1
3
10
12
15
I want to write a query, which will give me all numbers, which do not exist in table id column.
In my example, values of 17 and 20 should be returned.
I would
Which will get you those which are in your set.
And then use some PHP array function to get the substract of the arrays.