Re: is there a way to get hh:mm:ss given seconds - Mailing list pgsql-sql

From Josh Berkus
Subject Re: is there a way to get hh:mm:ss given seconds
Date
Msg-id web-1571826@davinci.ethosmedia.com
Whole thread Raw
In response to is there a way to get hh:mm:ss given seconds  ("Narendra A" <narendraa@subexgroup.com>)
Responses Re: is there a way to get hh:mm:ss given seconds  ("Christopher Kings-Lynne" <chriskl@familyhealth.com.au>)
List pgsql-sql
Narendra,

> I tried all these. This is what I get
> SQL> SELECT "interval"(cast(422 as varchar) || ' seconds');
> SELECT "interval"(cast(422 as varchar) || ' seconds')
>                                      *
> ERROR at line 1:
> ORA-00906: missing left parenthesis

> SQL> select '422 seconds'::interval;
> select '422 seconds'::interval
>                     *
> ERROR at line 1:
> ORA-00923: FROM keyword not found where expected

Those don't look like PostgreSQL error messages.  I think you are using
some other database.

-Josh Berkus


pgsql-sql by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: pg_restore cannot restore index
Next
From: "Christopher Kings-Lynne"
Date:
Subject: Re: is there a way to get hh:mm:ss given seconds