Re: Syntax for converting double to a timestamp - Mailing list pgsql-general

From Michael Glaesemann
Subject Re: Syntax for converting double to a timestamp
Date
Msg-id 2E716010-C9B7-42E1-A691-8FA7344999F3@seespotcode.net
Whole thread Raw
In response to Syntax for converting double to a timestamp  ("Frank Church" <voipfc@googlemail.com>)
List 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




pgsql-general by date:

Previous
From: "Frank Church"
Date:
Subject: Syntax for converting double to a timestamp
Next
From: Peter Eisentraut
Date:
Subject: Re: Syntax for converting double to a timestamp