Published in: SQL
URL: http://www.postgresql.org/docs/8.0/interactive/functions-datetime.html
/* * Subtracting months */ UPDATE employee SET dateOfBirth = dateOfBirth - interval '1 months' /* * Adding months */ UPDATE employee SET dateOfBirth = dateOfBirth + interval '1 months' /* * You can use one of the following intervals *-------------------------------------------- * microseconds * milliseconds * second * minute * hour * day * week * month * quarter * year * decade * century * millennium */
You need to login to post a comment.
