| От | Erwin Ambrosch |
|---|---|
| Тема | Question about numeric |
| Дата | |
| Msg-id | 200205221032.g4MAWCL05840@email.ebutec.at обсуждение исходный текст |
| Ответы |
Re: Question about numeric
Re: Question about numeric |
| Список | pgsql-general |
Hi, when I import data from a text file (fildes are seperated with pipes) I get an error for fields of type numeric if there are no data for this fields. Example: CREATE TABLE mytable ( id SERIAL, num VARCHAR(32), cost NUMERIC(6,2), info TEXT ); A line to import from a text file. 1|123abc||This part is.... Because of the empty field for the column cost, I get the following error: ERROR: copy: line 1, Bad numeric input format '' PQendcopy: resetting connection This works (zero for the column cost): 1|123abc|0|This part is.... Thanks Erwin
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера