how to get data between two dates with mysql query?

I am explaining you, how to get data between two dates with mysql query . you can easily understand concept of mysql query for between two dates. if you want to know about mysql query between two dates column then i will give simple example with solution query.

Example:

accessories Table:

Query:

SELECT id, title, created_at FROM `accessories` WHERE (created_at BETWEEN '2020-07-24 00:00:00' AND '2020-08-05 00:00:00')

Outout :

Leave a Reply

Your email address will not be published. Required fields are marked *

+ 70 = 73