Re: Is there a better way to do this? - Mailing list pgsql-general

From Rodrigo De León
Subject Re: Is there a better way to do this?
Date
Msg-id a55915760708281454v466f6636i649320934b47916e@mail.gmail.com
Whole thread Raw
In response to Is there a better way to do this?  (Wei Weng <wweng@kencast.com>)
List pgsql-general
On 8/28/07, Wei Weng <wweng@kencast.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;

pgsql-general by date:

Previous
From: Osvaldo Rosario Kussama
Date:
Subject: Re: Is there a better way to do this?
Next
From: "D. Dante Lorenso"
Date:
Subject: Re: Is there a better way to do this?