Re: Access to postgres conversion

Поиск
Список
Период
Сортировка
От Vick Khera
Тема Re: Access to postgres conversion
Дата
Msg-id BANLkTimog0YMr1-42OC=7VnBPE8Ot03qXw@mail.gmail.com
обсуждение исходный текст
Ответ на Access to postgres conversion  (akp geek <akpgeek@gmail.com>)
Список pgsql-general
On Thu, Jun 2, 2011 at 12:01 PM, akp geek <akpgeek@gmail.com> wrote:
> The only problem I am seeing with dates as you mentioned. when I export the
> data to csv the date is getting the format of 8/1/1955 0:00:00 , but
> postgres not accepting that. Any clues?

Should work:


test=> select '8/1/1955 0:00:00'::date;
    date
------------
 1955-08-01
(1 row)

Time: 0.325 ms
test=> select '8/1/1955 0:00:00'::timestamp;
      timestamp
---------------------
 1955-08-01 00:00:00
(1 row)


at worst I guess you run the export file thru an editing filter that
removes the '0:00:00' off the date column.

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

Предыдущее
От: Ben Chobot
Дата:
Сообщение: Re: Need suggestion
Следующее
От: Merlin Moncure
Дата:
Сообщение: Re: Postgres 8.3.5 - ECPG and the use of descriptors and cursors in multi-threaded programs