Is there a cleaner way to perform this query in MySQL?
SELECT * FROM table WHERE id != 1 AND id != 2 AND id != 7
like:
SELECT * FROM table WHERE id != (1,2,7)
Is there a cleaner way to perform this query in MySQL?
SELECT * FROM table WHERE id != 1 AND id != 2 AND id != 7
like:
SELECT * FROM table WHERE id != (1,2,7)