Re: COPY to

From: Angshu Kar <angshu96(at)gmail(dot)com>
To: "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: COPY to
Date: 2006-01-07 22:07:03
Message-ID: df8328740601071407o4a597a5fof41b7c5630a4da74@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thanks Andreas. But how can I run this from the pgAdmin III Query tool in a
WinXP m/c?

On 1/7/06, A. Kretschmer <andreas(dot)kretschmer(at)schollglas(dot)com> wrote:
>
> am 07.01.2006, um 14:13:28 -0600 mailte Angshu Kar folgendes:
> > Hi Pgsql,
> >
> > I want to copy the output of a SELECT query onto a text file. I'm trying
> to
> > use the COPY command for that as :
> >
> > COPY (SELECT .... ) to 'outfile'
>
> Wrong.
>
> \o output.txt
> select ...
> \o
>
> And now you have the result in 'output.txt'.
>
>
> HTH, Andreas
> --
> Andreas Kretschmer (Kontakt: siehe Header)
> Heynitz: 035242/47212, D1: 0160/7141639
> GnuPG-ID 0x3FFF606C http://wwwkeys.de.pgp.net
> === Schollglas Unternehmensgruppe ===
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster
>

--
Ignore the impossible but honor it ...
The only enviable second position is success, since failure always comes
first...

In response to

  • Re: COPY to at 2006-01-07 20:43:48 from A. Kretschmer

Responses

  • Re: COPY to at 2006-01-07 23:38:44 from Andreas Kretschmer
  • Re: COPY to at 2006-01-08 12:27:51 from Tino Wildenhain

Browse pgsql-general by date

  From Date Subject
Next Message Dave Steinberg 2006-01-07 22:16:56 Re: PGError: server closed the connection unexpectedly
Previous Message Michael Trausch 2006-01-07 21:50:44 Re: (Select *) vs. (Select id) from table.