1

I have a table with a timestamp field called "time".

I have many records in this table and "time" has value like: 1343296642, 1343308689...

I need to run a query to subtract 2 years of time to those value.

Can I do this.

1

Perhaps this UPDATE may do it:

UPDATE tablename SET `time` = `time` - INTERVAL 2 YEAR;
| improve this answer | |
  • I´ll try it.... – chefnelone Jul 27 '12 at 13:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.