Re: Bad Date field

Поиск
Список
Период
Сортировка
От bangh
Тема Re: Bad Date field
Дата
Msg-id 3C066B97.4B54C407@baileylink.net
обсуждение исходный текст
Ответ на Bad Date field  (Peralta Miguel-MPERALT1 <Miguel.Peralta@motorola.com>)
Список pgsql-admin
Suggest:

create another table, use text, instead of date type for that filed. AFter you
get imported and fix invalid data for that filed, in pgsql, you can convert it
to date type

In pgsql, this is easy to find those invalid data.

Bangh

Peralta Miguel-MPERALT1 wrote:

> Hello everyone:
>
> Would anyone know how to find a bad date field in an external file?  I have
> an external file that I am using to populate a table using the following
> command:
> COPY release_data FROM '/home/mperalta/release_data' USING DELIMITERS '|'
>
> When I issue this command, the response afte a while is the following:
>
> ERROR; Bad date external representation '9'
>
> The external file is rather large and I've tried finding this bad date
> manually with no success.  The table I'm copying into has a datestamp of
> type DATE.
>
> Any suggestions would be greatly appreciated.
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)


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

Предыдущее
От: DHSC Webmaster
Дата:
Сообщение: Re: Bad Date field
Следующее
От: "Leong, Fushan"
Дата:
Сообщение: Vaccum