Answer the question
In order to leave comments, you need to log in
Why can't this be done?
SELECT `table_name`, `table_name2` FROM `db_name` WHERE '1447372799' - UNIX_TIMESTAMP(`time`) > 0 AND '1447286400' < UNIX_TIMESTAMP(`time`);
Answer the question
In order to leave comments, you need to log in
Use BETWEEN in the comparison condition, just pass in the 2 constructed dates/values you need.
WHERE UNIX_TIMESTAMP(`time`) BETWEEN dateA and dateB
because:
SELECT список полей FROM список таблиц WHERE условия…
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question