Re: Hi, I have a question regarding the postgresql scripting

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: Hi, I have a question regarding the postgresql scripting
Дата
Msg-id 20030829024431.GC4373@wolff.to
обсуждение исходный текст
Ответ на Hi, I have a question regarding the postgresql scripting  ("Mehrab Erfani" <me@vuit.com>)
Список pgsql-admin
On Thu, Aug 28, 2003 at 14:40:37 -0800,
  Mehrab Erfani <me@vuit.com> wrote:
>
> I have written a script to import some data into my
> database tables, with the delimiter ','. Now my question
> is sometime the data being sent to my tables might not
> match the data type or be corrupted and I receive an error message.
> One: how could I prevent that?
> Two: how can I divert all my error messages to a log file, where I can see
> the errors later?
> Three: how can I proceed with importing the rest of the data even though
> some are corrupted?
> Thanks

Your script needs to check the data before passing it off to COPY or INSERT.

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

Предыдущее
От: "Mehrab Erfani"
Дата:
Сообщение: Hi, I have a question regarding the postgresql scripting
Следующее
От: "Yudha Setiawan"
Дата:
Сообщение: Can not deleted all record