Re: Question on interval - Mailing list pgsql-sql

From Rodrigo De León
Subject Re: Question on interval
Date
Msg-id a55915760704201229s24b2004fgf0e8c566886fe4af@mail.gmail.com
Whole thread Raw
In response to Question on interval  (Wei Weng <wweng@kencast.com>)
Responses Re: Question on interval
List pgsql-sql
On 4/20/07, Wei Weng <wweng@kencast.com> wrote:
> Hi all.
>
> How do I write a query that converts an interger to the interval type?
>
> Like convert integer 10 to INTERVAL '10 seconds'?
>
> The integer is a column in a table though, so it is more like convert
> integer tbl.theInteger to INTERVAL 'tbl.theInteger seconds".
>
> Thanks!
>
>
> Wei

select (10||' sec')::interval;


pgsql-sql by date:

Previous
From: Wei Weng
Date:
Subject: Question on interval
Next
From: Michael Glaesemann
Date:
Subject: Re: Question on interval