Re: Outputting to file

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: tansley(at)law(dot)du(dot)edu, pgsql-novice(at)postgresql(dot)org
Subject: Re: Outputting to file
Date: 2002-06-05 21:23:51
Message-ID: 200206051423.51141.josh@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Tom,

> Can anybody point me in the right direction for writing rows of data to a
> file. I know how to put stuff into a database from file but not how to get
> stuff out.

From psql:

\o file_name
SELECT whatever FROM some_table;
\o

See the documentatin on PSQL for more instructions. Or type \? at the psql
prompt.

-Josh Berkus

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Patrick Hatcher 2002-06-05 23:53:32 COPY from with PERL missing chunk of data
Previous Message Tom Ansley 2002-06-05 21:09:32 Outputting to file