Re: is there a way to get hh:mm:ss given seconds

From: "Christopher Kings-Lynne" <chriskl(at)familyhealth(dot)com(dot)au>
To: "Josh Berkus" <josh(at)agliodbs(dot)com>, <narendraa(at)subexgroup(dot)com>
Cc: <pgsql-sql(at)postgresql(dot)org>
Subject: Re: is there a way to get hh:mm:ss given seconds
Date: 2002-07-10 05:49:43
Message-ID: GNELIHDDFBOCMGBFGEFOAEBBCDAA.chriskl@familyhealth.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Petr Jezek 2002-07-10 08:00:59 Re: Bad SUM result
Previous Message Josh Berkus 2002-07-10 05:46:49 Re: is there a way to get hh:mm:ss given seconds