Answer the question
In order to leave comments, you need to log in
How to make a query that, when fetching, excludes a certain date?
Good afternoon!
Help with drawing up a query, you need to make a selection in which you want to exclude a certain date.
I do this, but something tells me that this is not how it is done.
Select* from users where not birthday in ('yyy-mm-dd')
Answer the question
In order to leave comments, you need to log in
birthday != ''
birthday NOT IN(...,...,...)
birthday NOT LIKE '...'
the first option is the most optimal, the rest for other cases
Normally, this is how it is done. In general, in is for a set of values, but no one will cover you with shame and contempt if you have only one value there. But not like - this is not necessary.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question