I need to all of timestamps in a column the same amount. I want to write an sql statement like:
update sometable set timecol = timecol + <4 months>;
I need to all of timestamps in a column the same amount. I want to write an sql statement like:
update sometable set timecol = timecol + <4 months>;
update sometable set timecol = add_months(timecol,4);
See documentation
update sometable set timecol = timecol + interval '4' month;
Strangely enough, I can't find this in the Oracle documentation anywhere, but it works on my Oracle XE installation. It's fairly close to the way PostgreSQL does it, and I believe it's part of one of the SQL standards.