| От | Wm.A.Stafford |
|---|---|
| Тема | COPY command and serial columns |
| Дата | |
| Msg-id | 4CD463AF.7030202@marine.rutgers.edu обсуждение |
| Ответы |
Re: COPY command and serial columns
|
| Список | pgsql-novice |
I am trying to use COPY to load some data. I am not using a list of column names in the COPY command. The table I am loading has 80 character varying columns and a primary key defined as: id serial PRIMARY KEY The id field is not in the data being loaded so COPY gives the message: ERROR: missing data for column "id" I don't want to use a column list because this table is subject to a lot of change and a column list would be yet another possible point of failure if it has to be changed to keep up with table changes. Is there anyway to load this data without specifying a column list? Thanks for any help or advice, -=beeky
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера