Re: FW: Re: Part 1 of several - Converting a varchar to an interval - Mailing list pgsql-sql

From Tom Lane
Subject Re: FW: Re: Part 1 of several - Converting a varchar to an interval
Date
Msg-id 29426.1206551668@sss.pgh.pa.us
Whole thread Raw
In response to FW: Re: Part 1 of several - Converting a varchar to an interval  (aklaver@comcast.net (Adrian Klaver))
Responses Re: FW: Re: Part 1 of several - Converting a varchar to an interval
List pgsql-sql
aklaver@comcast.net (Adrian Klaver) writes:
> select ('134987'::int/1000.00) * interval ' 1 second' ;
>     ?column?
>  --------------
>   00:02:14.987
>  (1 row)

Or even easier:

regression=# select 134987 * interval '1 msec';  ?column?   
--------------00:02:14.987
(1 row)

        regards, tom lane


pgsql-sql by date:

Previous
From: Shawn
Date:
Subject: Re: Question 2 Interval and timestamptz
Next
From: aklaver@comcast.net (Adrian Klaver)
Date:
Subject: Re: FW: Re: Part 1 of several - Converting a varchar to an interval