Re: Convert INT to INTERVAL?

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Brian Knox <laotse(at)aol(dot)net>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Convert INT to INTERVAL?
Date: 2004-02-27 17:40:59
Message-ID: 20040227174059.GB18900@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Fri, Feb 27, 2004 at 11:54:04 -0500,
Brian Knox <laotse(at)aol(dot)net> wrote:
> Is it possible within pl/pgsql, to convert an integer to an interval in
> months? IE, if num_months is an INT set to 48, can it be converted to an
> interval?

Can you use num_months * '1 month'::interval ?

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Michael Chaney 2004-02-27 18:07:05 Re: Convert INT to INTERVAL?
Previous Message David 2004-02-27 17:29:12 Re: searching polygons