I am trying to extract previous records from a table, but I cannot find how to do this for sure. You need your help ..
Table: RECORD_DATA
id creationDate 1 | 2013-05-03 04:03:35 | 2 | 2013-05-03 04:03:35 |
Now I need to get all the records created in 2013-05-03. Time can be any. Therefore, my request must have a LIKE statement.
I use the query below and it gives me an empty set.
select creationDate from RECORD_DATA where creationDate LIKE DATE_SUB(STR_TO_DATE('2012-04-05','%d/%m/%Y'),INTERVAL 1 DAY);
source share