How do I convert an integet to a timestamp?

Поиск
Список
Период
Сортировка
От Wei
Тема How do I convert an integet to a timestamp?
Дата
Msg-id 1126548068.702382.67260@z14g2000cwz.googlegroups.com
обсуждение исходный текст
Ответы Re: How do I convert an integet to a timestamp?  (Michael Fuhr <mike@fuhr.org>)
Re: How do I convert an integet to a timestamp?  ("Eugene E." <sad@bankir.ru>)
Список pgsql-sql
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?

Thanks

Wei



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

Предыдущее
От: "Greg Sabino Mullane"
Дата:
Сообщение: Re: Need help with `unique parents` constraint
Следующее
От: Ron Mayer
Дата:
Сообщение: Re: Indexing an array?