Re: [despammed] Select dump

From: Andreas Kretschmer <akretschmer(at)despammed(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: [despammed] Select dump
Date: 2005-05-11 13:34:32
Message-ID: 20050511133432.GJ30549@webserv.wug-glas.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

am 11.05.2005, um 14:15:10 +0100 mailte SG Edwards folgendes:
>
> Hi,
>
> Quick question for 10 points!
>
> Is there a way to write the output of a select query to a file (I'm on a linux
> platform)?
>
> For example:
>
> SELECT name, age, address from employee;
>
> gives the result that I want to write to a text file:

If you work with psql, you can use "\o FILE" to define a filename for
output. If you work in a shell a call psql, you can redirect the output.

Regards, Andreas
--
Andreas Kretschmer (Kontakt: siehe Header)
Heynitz: 035242/47212, D1: 0160/7141639
GnuPG-ID 0x3FFF606C http://wwwkeys.de.pgp.net
=== Schollglas Unternehmensgruppe ===

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message John DeSoi 2005-05-11 13:49:14 Re: [despammed] Select dump
Previous Message SG Edwards 2005-05-11 13:15:10 Select dump