pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruno Wolff III <bruno@wolff.to>
To: Brian Knox <laotse@aol.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: Convert INT to INTERVAL?
Date: Fri, 27 Feb 2004 11:40:59 -0600
Message-ID: <20040227174059.GB18900@wolff.to> (raw)
In-Reply-To: <403F762B.20002@aol.net>
References: <403F762B.20002@aol.net>

On Fri, Feb 27, 2004 at 11:54:04 -0500,
  Brian Knox <laotse@aol.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 ?



view thread (5+ messages)  latest in thread

Message-ID: <20040227174059.GB18900@wolff.to>
Permalink:  ../20040227174059.GB18900@wolff.to/
Also on:    postgresql.org/message-id/20040227174059.GB18900@wolff.to

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: bruno@wolff.to, laotse@aol.net
  Subject: Re: Convert INT to INTERVAL?
  In-Reply-To: <20040227174059.GB18900@wolff.to>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox