SELECT * FROM table WHERE id != 4;
SELECT * FROM table WHERE NOT id = 4;
SELECT * FROM table WHERE id <> 4;
I’ve got this all working but I also have to choose another field (or more fields) to decide what rows are returned.
How can I get this working?
If you want to ‘deselect’ columns where both conditions are true (
ID1is 4 andID2is 7), use something like:If you want to ‘deselect’ columns where either condition is true (
ID1is 4 orID2is 7), use something like:This can be extended to more conditions simply by adding them to the end of the
whereclause (and changingboth/eithertoall/anyin the text).