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')) 

Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -