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

From Christopher Kings-Lynne
Subject Re: is there a way to get hh:mm:ss given seconds
Date
Msg-id GNELIHDDFBOCMGBFGEFOAEBBCDAA.chriskl@familyhealth.com.au
Whole thread Raw
In response to Re: is there a way to get hh:mm:ss given seconds  ("Josh Berkus" <josh@agliodbs.com>)
List pgsql-sql
> > 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.

Yes - he's using Oracle.  I think Narendra is rather confused...

Chris



pgsql-sql by date:

Previous
From: "Josh Berkus"
Date:
Subject: Re: is there a way to get hh:mm:ss given seconds
Next
From: q
Date:
Subject: query/transaction history/logs