Answer the question
In order to leave comments, you need to log in
How to use between?
I read the docks www.mysql.ru/docs/man/Comparison_Operators.html and it was after them that the question arose
SELECT `id`,`user` FROM `table` WHERE `user` BETWEEN 1000 AND 100
SELECT `user` FROM `table` BETWEEN 1000 AND 100
Answer the question
In order to leave comments, you need to log in
in BETWEEN the first number is the start of the range, and the second is the end.
Your request
is similar to this:
as you can see from this condition, 500 is not more than 1000 and not less than 100, i.e. you need to create a request like this:`user` BETWEEN 100 AND 1000
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question