| От | Greg Williamson |
|---|---|
| Тема | Re: Importing/Appending to Existing Table |
| Дата | |
| Msg-id | 212306.72652.qm@web46115.mail.sp1.yahoo.com обсуждение исходный текст |
| Ответ на | Importing/Appending to Existing Table (Rich Shepard <rshepard@appl-ecosys.com>) |
| Ответы |
Re: Importing/Appending to Existing Table
|
| Список | pgsql-general |
Rich -- > > > I have an existing table with 15,492 rows and want to add additional rows > from a .csv file. If I use 'COPY <tablename> from <filename> with delimiter > as ":" csv quote as "'" ' will this overwrite existing rows in the table or > append rows? It will not overwrite any existing data; if the table has constraints that will prevent duplicates then the entire load will fail if any item fails (it is a single transaction). If the table doesn't have such constraints then duplicate data in the copy file will result in duplicate rows. HTH, Greg Williamson
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера