Re: Any idea about using \COPY in ECPG statement

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Any idea about using \COPY in ECPG statement
Date: 2011-08-17 06:50:08
Message-ID: 4E4B64A0.6030801@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 08/16/11 11:28 PM, Siva Palanisamy wrote:
>
> Hi All,
>
> Does anybody have an idea about how to write \COPY command as an ECPG
> statement?
>
>

are you a broken record? I've answered this several times now.

COPY .... TO STDOUT....

and capture the output with |PQgetCopyData| or whatever the equivalent
is in your favorite language binding.

--
john r pierce N 37, W 122
santa cruz ca mid-left coast

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Sim Zacks 2011-08-17 06:53:37 Re: Using Postgresql as application server
Previous Message Pavel Stehule 2011-08-17 06:34:52 Re: Any idea about using \COPY in ECPG statement