Re: changing 'mons' in interval? - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: changing 'mons' in interval?
Date
Msg-id 20070604094308.GB16196@svana.org
Whole thread Raw
In response to changing 'mons' in interval?  (Klint Gore <kg@kgb.une.edu.au>)
Responses Re: changing 'mons' in interval?  (Klint Gore <kg@kgb.une.edu.au>)
List pgsql-general
On Mon, Jun 04, 2007 at 06:51:37PM +1000, Klint Gore wrote:
> Is there a way to change mons in interval::text to the full word months
> without resorting to "replace(aninterval::text,'mon','Month')"?  If it
> can handle locales as well that would be good (but I could live without
> it).

Have you considered using to_char to get the output in the exact format
you want?

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

Attachment

pgsql-general by date:

Previous
From: Ragnar
Date:
Subject: Re: simple select question
Next
From: Lincoln Yeoh
Date:
Subject: Re: Numeric performances