Re: casting... adding integer to timestamp - Mailing list pgsql-general

From Michael Glaesemann
Subject Re: casting... adding integer to timestamp
Date
Msg-id D2195042-5687-4B5F-87A2-B0E13B695EBA@seespotcode.net
Whole thread Raw
In response to casting... adding integer to timestamp  (Mark Gibson <mark@gibsonsoftware.com>)
Responses Re: casting... adding integer to timestamp  (Mark Gibson <mark@gibsonsoftware.com>)
List pgsql-general
On Jun 25, 2006, at 14:23 , Mark Gibson wrote:

> SELECT  play_length - INTERVAL 'play_seconds seconds' ...

The column isn't interpolated into the string. Try

SELECT play_length - play_seconds * INTERVAL '1 second'

Hope this helps.

Michael Glaesemann
grzm seespotcode net




pgsql-general by date:

Previous
From: Mark Gibson
Date:
Subject: casting... adding integer to timestamp
Next
From: Frank Finner
Date:
Subject: Re: casting... adding integer to timestamp