MySQL update just day in date column in many rows -
having rows:
1|2015-04-22 2|2015-03-11 3|2015-02-15
i want update on rows day, example:
1|2015-04-25 2|2015-03-25 3|2015-02-25
it looks want keep year , month same, , change days 25th of whichever year , month shown.
the formula need
date(date_format(datecolumn, '%y-%m-25'))
so, update table it's
update mytable set datecolumn = date(date_format(datecolumn, '%y-%m-25'))