pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Add a month
3+ messages / 2 participants
[nested] [flat]

* Add a month
@ 2002-05-07 07:29  Gaetano Mendola <mendola@bigfoot.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Gaetano Mendola @ 2002-05-07 07:29 UTC (permalink / raw)
  To: pgsql-admin

Hi all,

giving a date how can I add a month ?
Till now I was working adding x days like this

now() + x 

but is not anymore enough

Ciao
Gaetano

-- 
#exclude <windows>
#include <CSRSS>
printf("\t\t\b\b\b\b\b\b");.
printf("\t\t\b\b\b\b\b\b");




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Add a month
@ 2002-05-07 07:46  Rajesh Kumar Mallah. <mallah@trade-india.com>
  parent: Gaetano Mendola <mendola@bigfoot.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Rajesh Kumar Mallah. @ 2002-05-07 07:46 UTC (permalink / raw)
  To: Gaetano Mendola <mendola@bigfoot.com>; pgsql-admin


Hi the answer is:

select now() + cast  ( '1 day' as interval ) ;

are you reading  manuals ??

regds
mallah.

On Tuesday 07 May 2002 12:59 pm, Gaetano Mendola wrote:
> Hi all,
>
> giving a date how can I add a month ?
> Till now I was working adding x days like this
>
> now() + x
>
> but is not anymore enough
>
> Ciao
> Gaetano

-- 
Rajesh Kumar Mallah,
Project Manager (Development)
Infocom Network Limited, New Delhi
phone: +91(11)6152172 (221) (L) ,9811255597 (M)

Visit http://www.trade-india.com ,
India's Leading B2B eMarketplace.





^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Add a month
@ 2002-05-07 08:56  Gaetano Mendola <mendola@bigfoot.com>
  parent: Rajesh Kumar Mallah. <mallah@trade-india.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Gaetano Mendola @ 2002-05-07 08:56 UTC (permalink / raw)
  To: Rajesh Kumar Mallah. <mallah@trade-india.com>; pgsql-admin

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.




^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2002-05-07 08:56 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-05-07 07:29 Add a month Gaetano Mendola <mendola@bigfoot.com>
2002-05-07 07:46 ` Rajesh Kumar Mallah. <mallah@trade-india.com>
2002-05-07 08:56   ` Gaetano Mendola <mendola@bigfoot.com>

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