Re: Access to postgres conversion - Mailing list pgsql-general

From Vick Khera
Subject Re: Access to postgres conversion
Date
Msg-id BANLkTimog0YMr1-42OC=7VnBPE8Ot03qXw@mail.gmail.com
Whole thread Raw
In response to Access to postgres conversion  (akp geek <akpgeek@gmail.com>)
List 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 by date:

Previous
From: Ben Chobot
Date:
Subject: Re: Need suggestion
Next
From: Merlin Moncure
Date:
Subject: Re: Postgres 8.3.5 - ECPG and the use of descriptors and cursors in multi-threaded programs