I have some MySQL databases that have several tables that contain (amongst others) some DATETIME columns. I am searching for a way to add some amount of time (say one year) to all DATETIME columns in the whole database.
This can be useful if the system-time was wrong when the data was originally written to the database.
OR, as in my case
to create recent DEMO-data for an application out of historical data.
- Is there a way to shift all DATETIME fields in a Database at once?
- If not, How can the DATATIME column of all entries in ONE table be shifted (i.e. add some offset)?
thanks for your answers!