I have many columns like this:
select when from t1 where when LIKE '2002-01-02 %'\G
*************************** 1. row ***************************
when: 2002-01-02 02:13:14
*************************** 2. row ***************************
when: 2002-01-02 02:15:31
*************************** 3. row ***************************
when: 2002-01-02 02:19:42
I am trying to increment the date and time with 10 years, 3 month, 22 days, and 13 hours, 10 minutes, so that it will look something like:
2012-04-24 15:23:14
2012-04-24 15:25:31
2012-04-24 15:29:42
Searched and found ways ( ADDDATE ) to increase either only the year, or month … but how can I do for all the year, month, date, and time ?
If it can be done in a single query it would great, but anything is fine .. Thanks for your time.
You can use something like this –