N
N
numb72015-05-22 20:21:10
SQL
numb7, 2015-05-22 20:21:10

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

2 answer(s)
I
IceJOKER, 2015-05-22
@IceJOKER

birthday != ''
birthday NOT IN(...,...,...)
birthday NOT LIKE '...'
the first option is the most optimal, the rest for other cases

A
Artyom Karetnikov, 2015-05-22
@art_karetnikov

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 question

Ask a Question

731 491 924 answers to any question