| От | Alban Hertroys |
|---|---|
| Тема | Re: COPY error with null date |
| Дата | |
| Msg-id | EAB73DA4-6F63-468D-99D0-B1EA72798A29@gmail.com обсуждение исходный текст |
| Ответ на | Re: COPY error with null date (Rajeev rastogi <rajeev.rastogi@huawei.com>) |
| Список | pgsql-general |
On 24 Mar 2014, at 5:32, Rajeev rastogi <rajeev.rastogi@huawei.com> wrote: > On 21st March 2014, Ashmita Jain Wrote: > > >It is taking date as an empty string. > >Try defining the empty field as ‘\N’ in your source file. > > ‘\N’ in copy source file always results into an empty string (unless something written in new line), which is correct only. > So COPY from such source file will always fail except for the case if the column data-type is string. You appear to be confusing \N with \n. Those are very different escape codes; the second means new line, while the firstmeans NULL. Alban Hertroys -- If you can't see the forest for the trees, cut the trees and you'll find there is no forest.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера