Re: Syntax for converting double to a timestamp

Поиск
Список
Период
Сортировка
От Michael Glaesemann
Тема Re: Syntax for converting double to a timestamp
Дата
Msg-id 2E716010-C9B7-42E1-A691-8FA7344999F3@seespotcode.net
обсуждение исходный текст
Ответ на Syntax for converting double to a timestamp  ("Frank Church" <voipfc@googlemail.com>)
Список 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 по дате отправления:

Предыдущее
От: "Frank Church"
Дата:
Сообщение: Syntax for converting double to a timestamp
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Syntax for converting double to a timestamp