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

From: "Josh Berkus" <josh(at)agliodbs(dot)com>
To: <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:46:49
Message-ID: web-1571826@davinci.ethosmedia.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Christopher Kings-Lynne 2002-07-10 05:49:43 Re: is there a way to get hh:mm:ss given seconds
Previous Message Bruce Momjian 2002-07-10 02:58:49 Re: pg_restore cannot restore index