From: Gaetano Mendola <mendola@bigfoot.com>
To: Rajesh Kumar Mallah. <mallah@trade-india.com>
To: pgsql-admin@postgresql.org
Subject: Re: Add a month
Date: Tue, 7 May 2002 10:56:24 +0200
Message-ID: <00a801c1f5a5$10d79f60$d5a9fea9@GMENDOLA2> (raw)
References: <009b01c1f598$fbede2f0$d5a9fea9@GMENDOLA2>
<200205071316.42997.mallah@trade-india.com>
From: "Rajesh Kumar Mallah." <mallah@trade-india.com>
> Hi the answer is:
>
> select now() + cast ( '1 day' as interval ) ;
I guess that for me should be enough
cast ('1 month' as interval)
or may be after RTFM
should be also good
select now() + interval '1 month';
> are you reading manuals ??
of course before to ask I give a look at manuals
but I was looking:
paragraph 3.5 and Appendix A of User's Guide ===> nothing
after searching 'cast' on all document I find that was on
paragraph 4.8 my answer but may was good put a
link from 3.5 to 4.8 ?
Ciao
Gaetano.
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: mendola@bigfoot.com, mallah@trade-india.com
Subject: Re: Add a month
In-Reply-To: <00a801c1f5a5$10d79f60$d5a9fea9@GMENDOLA2>
References: <009b01c1f598$fbede2f0$d5a9fea9@GMENDOLA2> <200205071316.42997.mallah@trade-india.com> <00a801c1f5a5$10d79f60$d5a9fea9@GMENDOLA2>
* 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