I have an PHP array of numbers (0,1,2,3,4,5) and I want to check which of them are not in my DB table.
How can I do something like:
SELECT num FROM (0,1,2,3,4,5) AS num WHERE num NOT IN (SELECT id FROM sometable);
I'm asking about the right SQL synthax.