Answer the question
In order to leave comments, you need to log in
Date interval (+ time) in MySQL?
Dear time of day!
To select records in the interval of certain dates, namely yesterday and today, I use the trace. request:
SELECT * FROM matches WHERE (`match_date` >= CURDATE() - INTERVAL 1 DAY) AND (`match_date` < CURDATE() + INTERVAL 1 DAY)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question