RE: OracleBulkCopy in PostGreSQL

From: "Jain, Abhishek" <Abhishek(dot)Jain2(at)mercer(dot)com>
To: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
Cc: "pgsql-novice(at)postgresql(dot)org" <pgsql-novice(at)postgresql(dot)org>
Subject: RE: OracleBulkCopy in PostGreSQL
Date: 2018-09-12 14:59:38
Message-ID: 964bf848c2bf44d79178427599ecf643@GBBED11XG60CN02.mercer.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

That’s the question - What's the code that I need to rewrite the code in postgre?

Thanks
Abhishek Jain
Mercer | 5th - 9th Floors, Building No. 14A, Sector-24 & 25, DLF Cyber City, Gurgaon - 122002, Haryana, India
+91 124 477 2156 | Mobile +91 9891968728 | abhishek(dot)jain2(at)mercer(dot)com
www.mercer.com | Mercer India Private Limited

-----Original Message-----
From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
Sent: Wednesday, September 12, 2018 8:25 PM
To: Jain, Abhishek <Abhishek(dot)Jain2(at)mercer(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: OracleBulkCopy in PostGreSQL

Jain, Abhishek wrote:
> Following is the implementation that I have used using OracleBulkCopy
> wherein I have mapped the DB & data table columns [Highlighted in yellow].
> But in the 'Text Copy' how can I specify these mappings.

This will be quite different in the PostgreSQL case.
Read the documentation on COPY.

You will have to rewrite your code.

Yours,
Laurenz Albe
--
Cybertec | https://www.cybertec-postgresql.com

________________________________

This e-mail and any attachments may be confidential or legally privileged.
If you received this message in error or are not the intended recipient,
you should destroy the email message and any attachments or copies, and
you are prohibited from retaining, distributing, disclosing or using any
information contained herein. Please inform us of the erroneous delivery
by return e-mail. Thank you for your co-operation.
Mercer India Private Limited, 6th Floor, Building 14A,
DLF Cyber City Developers Limited, SEZ, Sector 24 & 25,
DLF Cyber City, Gurgaon, Haryana , India-122002.

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Jain, Abhishek 2018-09-13 10:17:43 PostgreSQL installation issue
Previous Message Laurenz Albe 2018-09-12 14:54:56 Re: OracleBulkCopy in PostGreSQL