Skip site navigation (1) Skip section navigation (2)

Re: Help with simple function

From: Chris Hoover <revoohc(at)gmail(dot)com>
To: Jason Minion <jason(dot)minion(at)sigler(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Help with simple function
Date: 2005-12-28 15:33:08
Message-ID: 1d219a6f0512280733k74c7ecf6kdff6408ba6c6bfa5@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-admin
On 12/28/05, Jason Minion <jason(dot)minion(at)sigler(dot)com> wrote:
>
> And last but not least, you can do simple day addition and subtraction
> with dates using integers. For example:
>
> > select '2005-12-26'::date + 8;
>
> returns '2006-01-03'. However, I'm not sure if that will work with
> 7.3.x. Good luck with your 8.x install!
>
> Jason


That works like a charm.  Thanks a bunch for the help.

Chris

In response to

pgsql-admin by date

Next:From: Tom LaneDate: 2005-12-28 15:58:03
Subject: Re: restored database locale problem
Previous:From: Goulet, DickDate: 2005-12-28 15:26:22
Subject: Re: migrating oracle table to PostgresQL

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group