From: Magdalena Komorowska <meluzyna@w3.net.pl>
To: pgsql-sql@postgresql.org
Subject: Date Interval
Date: Tue, 6 Dec 2005 14:49:33 +0100
Message-ID: <20051206135906.ECA9713E35@spinet.pl> (raw)
Hi,
I hale a problem with counting interwal and I can't find what to do with
this.
I have two fields in the table:
Column | Type | Modifiers
-----------------+---------+-----------
date_in | date |
interwal_months | numeric |
-----------------+---------+-----------
Query
SELECT date_in + INTERVAL '3 MONTH' FROM any_table
works fine of course.
However, how to do something like that?
SELECT date_in + INTERVAL ' interwal_months MONTH' FROM any_table
I hope I'm just blind.. ;-)
Thanks for any help.
MK
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: meluzyna@w3.net.pl
Subject: Re: Date Interval
In-Reply-To: <20051206135906.ECA9713E35@spinet.pl>
* 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