I am trying to select the last 6 months of entries in a table, I have a column called datetime and this is in a datetime mysql format.
I have seen many ways using in
Try this:
select * from table where your_dt_field >= date_sub(now(), interval 6 month);
Query reads: give me all entries in table where the field corresponding to the entry date is newer than 6 months.
table