Re: Importing data w/ Unix timestamp

Поиск
Список
Период
Сортировка
От Thomas Lockhart
Тема Re: Importing data w/ Unix timestamp
Дата
Msg-id 395B8A68.CCEEE831@alumni.caltech.edu
обсуждение исходный текст
Ответ на Importing data w/ Unix timestamp  (brianb-pggeneral@edsamail.com)
Ответы Re: Importing data w/ Unix timestamp
Список pgsql-general
> insert into RealTable select uname, timestamp(abstime(timeinAsInt4)),
>                              duration, etc from TempTable;

Another side comment: afaik an explicit conversion to abstime is not
required to go from Unix time to timestamp. So

  insert into RealTable select uname, timestamp(timeinAsInt4),
                               duration, etc from TempTable;

should be equivalent.

                     - Thomas

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Comments with embedded single quotes
Следующее
От: Ed Loehr
Дата:
Сообщение: Re: Importing data w/ Unix timestamp