Conversion of a column from Integer format type to 'timestamp with time zone'

Поиск
Список
Период
Сортировка
От Raj kumar
Тема Conversion of a column from Integer format type to 'timestamp with time zone'
Дата
Msg-id CACxU--WR-nWB+gVGoTfrvYNb43HxzQNATW7HhSzkw291Qvifeg@mail.gmail.com
обсуждение исходный текст
Ответы Re: Conversion of a column from Integer format type to 'timestamp with time zone'  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-admin
Hi, there is a column 'created' in the 'customers' table which is actually supposed to be a 'timestamp with time zone' column but stored in this Integer format. How do I typecast this to 'timestamp with time zone' format?

select created from customers limit 3;
    created
---------------
 1521521848681
 1508995056368
 1521559994299
(3 rows)

Thanks,
Raj Kumar Narendiran.

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

Предыдущее
От: Massimo Ortensi
Дата:
Сообщение: Re: Problems with unique constraints
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: Conversion of a column from Integer format type to 'timestamp with time zone'