Re: Any idea about using \COPY in ECPG statement - Mailing list pgsql-general

From John R Pierce
Subject Re: Any idea about using \COPY in ECPG statement
Date
Msg-id 4E4B64A0.6030801@hogranch.com
Whole thread Raw
In response to Any idea about using \COPY in ECPG statement  (Siva Palanisamy <siva_p@hcl.com>)
List 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


pgsql-general by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: Any idea about using \COPY in ECPG statement
Next
From: Sim Zacks
Date:
Subject: Re: Using Postgresql as application server