Re: Is it possible to send data in client end?

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Is it possible to send data in client end?
Date: 2012-06-21 04:34:53
Message-ID: 4FE2A46D.1000906@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 06/20/12 9:13 PM, AI Rumman wrote:
> I am using Postgresql 9.1. I know that COPY is used to export data as
> csv. But COPY creates file in server end. I need to create a file in
> client end.
> My application uses php.
> Is there any tool for it?
>

use COPY blahblah TO STDOUT;

in php, you can use pg_copy_to() which will put the results in a php
array, one array row per line of output.

--
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 Stefan Schwarzer 2012-06-21 05:40:59 Re: Error message "psql: could not connect to server: No such file or directory"
Previous Message AI Rumman 2012-06-21 04:13:01 Is it possible to send data in client end?