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

From aklaver@comcast.net (Adrian Klaver)
Subject Re: FW: Re: Part 1 of several - Converting a varchar to an interval
Date
Msg-id 032620081721.26418.47EA861C00020C960000673222135753339D0A900E04050E@comcast.net
Whole thread Raw
In response to FW: Re: Part 1 of several - Converting a varchar to an interval  (aklaver@comcast.net (Adrian Klaver))
List pgsql-sql
-------------- Original message ----------------------
From: Tom Lane <tgl@sss.pgh.pa.us>
> 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
> 

That's the secret, I tried '1 millisecond' . Should have dug further.
--
Adrian Klaver
aklaver@comcast.net


pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: FW: Re: Part 1 of several - Converting a varchar to an interval
Next
From: aklaver@comcast.net (Adrian Klaver)
Date:
Subject: Re: FW: Re: Part 1 of several - Converting a varchar to an interval