Month function in Informix?
Posted in 1999
Topics: General Discussion
Hi folks, Is there a function in Informix similar to 'Add_Months()' in Oracle that simply adds to the month field in a date. Eg: Add_Months('15/07/1999', 1) = '15/08/1999' Thanks, Michael.
Michael, Look at the extend and interval functions. Take Care, Graeme Michael O'Sullivan wrote: > Hi folks, > > Is there a function in Informix similar to 'Add_Months()' in Oracle that > simply adds to the month field in a date. > > Eg: Add_Months('15/07/1999', 1) = '15/08/1999' > > Thanks, > Michael.
How about: date_field + 1 UNITS MONTH Tony In article <81ejg9$olu$1@ezekiel.eunet.ie>, "Michael O'Sullivan" <MichaelOS@peregrine.ie> wrote: > Hi folks, > > Is there a function in Informix similar to 'Add_Months()' in Oracle that > simply adds to the month field in a date. > > Eg: Add_Months('15/07/1999', 1) = '15/08/1999' > > Thanks, > Michael. -- -- The opinions expressed here are mine and only mine. asalerno@my-deja.com http://www.summitdata.com http://www.virtual-dba.com Sent via Deja.com http://www.deja.com/ Before you buy.