Re: Importing/Appending to Existing Table

From: Sergey Konoplev <gray(dot)ru(at)gmail(dot)com>
To: Rich Shepard <rshepard(at)appl-ecosys(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Importing/Appending to Existing Table
Date: 2011-02-02 07:12:30
Message-ID: AANLkTi=3iGdaGZC6V2GX7t+iNAMkTLgmhWEOsnqA_pqZ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 2 February 2011 03:28, Rich Shepard <rshepard(at)appl-ecosys(dot)com> wrote:
>  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?

No it wont overwrite, it will append rows.

>
> Rich
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>

--
Sergey Konoplev

Blog: http://gray-hemp.blogspot.com /
Linkedin: http://ru.linkedin.com/in/grayhemp /
JID/GTalk: gray(dot)ru(at)gmail(dot)com / Skype: gray-hemp

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adarsh Sharma 2011-02-02 09:23:40 Installation Issue of PostgresPlus-9.0
Previous Message Greg Sabino Mullane 2011-02-02 07:07:37 Re: Why does my DB size differ between Production and DR? (Postgres 8.4)