Reputation: 3
Please how to MySql SELECT with multiple NOT operation for single column ?
Example:-
WHERE column != 'a' column != 'b' column != 'c'
Upvotes: 0
Views: 117
Reputation: 2617
You could also use something with NOT IN()
WHERE column NOT IN ('a','b','c')
Upvotes: 1
Reputation: 9949
You are just missing AND
WHERE column != 'a' AND column != 'b' AND column != 'c'
Upvotes: 2