SELECT * FROM 'ofertas' WHERE date LIKE '2016-12-20%' BETWEEN LIKE '2017-01-16%'
I would like to consult a range of dates, but the column date
is declared with the default CURRENT_TIMESTAMP
, so when making the query with the clause BETWEEN
, you would also have to enter the record time '.
Is it possible to make this query with only the date and not the time, without having to modify the structure of the table because the time is used in other sections of the system?