Re: Queries to Export - Mailing list pgsql-novice

From
Subject Re: Queries to Export
Date
Msg-id 20060217164004.16154.qmail@web33312.mail.mud.yahoo.com
Whole thread Raw
In response to Re: Queries to Export  ("Chandra Sekhar Surapaneni" <chandu@positivenetworks.net>)
List pgsql-novice
--- Chandra Sekhar Surapaneni
<chandu@positivenetworks.net> wrote:

> "\o filename";
> "select your_query_goes_here;"
> "\o"
>
> This should do the trick. Basically \o will start
> writing the results to
> the file.
> "\?" will give you help for such psql commands.
>
> Regards
> Chandra Sekhar Surapaneni
>
> -----Original Message-----
> From: pgsql-novice-owner@postgresql.org
> [mailto:pgsql-novice-owner@postgresql.org] On Behalf
> Of Warren Murray
> Sent: Thursday, February 16, 2006 4:42 PM
> To: pgsql-novice@postgresql.org
> Subject: [NOVICE] Queries to Export
>
> I need to export the results of several union and
> join queries from a
> PostgreSQL database tables into text files.  How is
> that done since the
> results is not in a table?
>
> Warren

Warren, i think pgadmin3 has a button that saves the
results of a query to a file.  that may be worth a
try, too.

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

pgsql-novice by date:

Previous
From: "Shaler"
Date:
Subject: reinstallation of Posstgresql 8.0 program
Next
From: Michael Fuhr
Date:
Subject: Re: PostGIS Geometry column in pg8.1.3