Re: Syntax for converting double to a timestamp

From: Michael Glaesemann <grzm(at)seespotcode(dot)net>
To: "Frank Church" <voipfc(at)googlemail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Syntax for converting double to a timestamp
Date: 2006-09-03 23:24:09
Message-ID: 2E716010-C9B7-42E1-A691-8FA7344999F3@seespotcode.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On Sep 4, 2006, at 7:57 , Frank Church wrote:

> I am trying to create a view based on this query
>
> 'select *, "timestamp"::timestamp from ccmanager_log'

<snip />

> What is the right syntax?

Try this:

select *, to_timestamp("timestamp") from ccmanager_log

http://www.postgresql.org/docs/current/interactive/functions-
formatting.html#FUNCTIONS-FORMATTING-TABLE

Does it do what you want?

Michael Glaesemann
grzm seespotcode net

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Peter Eisentraut 2006-09-03 23:25:49 Re: Syntax for converting double to a timestamp
Previous Message Frank Church 2006-09-03 22:57:28 Syntax for converting double to a timestamp