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: (view raw, whole thread or download thread mbox)
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.


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-2017 The PostgreSQL Global Development Group