Re: How do I convert an integet to a timestamp?

Поиск
Список
Период
Сортировка
От Eugene E.
Тема Re: How do I convert an integet to a timestamp?
Дата
Msg-id 43269192.2060603@bankir.ru
обсуждение исходный текст
Ответ на How do I convert an integet to a timestamp?  ("Wei" <wengwei@gmail.com>)
Список pgsql-sql
Wei wrote:
> Hi.
> 
> I followed the doc and tried "select CAST(1126547334 AS timestamp)" and
> I only got an error response that says: ERROR:  cannot cast type
> integer to timestamp without time zone.
> 
> What is the proper way to do the conversion?

select 123456789::abstime::timestamp;


В списке pgsql-sql по дате отправления:

Предыдущее
От: Michael Fuhr
Дата:
Сообщение: Re: How do I convert an integet to a timestamp?
Следующее
От: Marcin Piotr Grondecki
Дата:
Сообщение: Re: SELECT: retrieve only 2 rows next to known row