Re: Date math question - Mailing list pgsql-general

From Raymond O'Donnell
Subject Re: Date math question
Date
Msg-id 492D9CBE.9010409@iol.ie
Whole thread Raw
In response to Date math question  (Kevin Kempter <kevink@consistentstate.com>)
List pgsql-general
On 26/11/2008 18:54, Kevin Kempter wrote:

> I have a table that contains 2 columns ts (a timestamp) and dursec (a float -
> number of seconds)
>
> I want to insert the following into another table:
>
> the ts (timestamp column) and a second date which is ts + dursec

Something like this? -

select ts, ts + (dursec * interval '1 second')....

Ray.

------------------------------------------------------------------
Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland
rod@iol.ie
Galway Cathedral Recitals: http://www.galwaycathedral.org/recitals
------------------------------------------------------------------

pgsql-general by date:

Previous
From: hubert depesz lubaczewski
Date:
Subject: Re: Date math question
Next
From: Richard Huxton
Date:
Subject: Re: Odd on-update inconsistency