From: | <singh(dot)srajendra(at)wipro(dot)com> |
---|---|
To: | <pgsql-sql(at)postgresql(dot)org> |
Subject: | ignoring primary key violations in COPY command |
Date: | 2007-05-14 11:57:23 |
Message-ID: | B9F9AF34C9B5F743996B82EF46DF07CD03A6D4EC@BLR-EC-MBX04.wipro.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Hi all,
We are importing the data from the CSV file into the database using COPY
command. But when the 'primary key ' violation occurs , it stops
Then and there and data is not updated into the tables. Also in the CSV
file the number of columns is not fixed , its varies
In number , it can range anywhere between 1 -22, I need to figure out a
way such that I need to update only those columns which are present
In the CSV file . This of course I would like to accomplish using COPY
command , Please let me know if at all this is possible in postgresql
8.1
Thanks and regards,
Rajendra Singh
Wipro Technologies
Plot No. 72, Hosur Main road
Keonics Electronics City
Bangalore- 560100, INDIA
I believe we should all pay our tax with a smile. I tried - but they
wanted cash
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
www.wipro.com
From | Date | Subject | |
---|---|---|---|
Next Message | singh.srajendra | 2007-05-14 12:36:25 | ignoring primary key violations in COPY command |
Previous Message | Andrej Ricnik-Bay | 2007-05-14 06:59:11 | Re: need help |