Re: Is there a better way to do this?

From: Rodrigo De León <rdeleonp(at)gmail(dot)com>
To: "Wei Weng" <wweng(at)kencast(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Is there a better way to do this?
Date: 2007-08-28 21:54:50
Message-ID: a55915760708281454v466f6636i649320934b47916e@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 8/28/07, Wei Weng <wweng(at)kencast(dot)com> wrote:
> Is there a more concise way to do this?

CREATE OR REPLACE FUNCTION
ADDDAYS (TIMESTAMP WITHOUT TIME ZONE, INT)
RETURNS TIMESTAMP WITHOUT TIME ZONE AS '
SELECT $1+($2 * ''1 DAY''::INTERVAL)
' LANGUAGE SQL;

In response to

Browse pgsql-general by date

  From Date Subject
Next Message D. Dante Lorenso 2007-08-28 21:55:47 Re: Is there a better way to do this?
Previous Message Michael Glaesemann 2007-08-28 21:51:41 Re: Is there a better way to do this?