pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: jose' soares <sferac@bo.nettuno.it>
To: Martin Möderndorfer <mmoedern@linux.stuco.uni-klu.ac.at>
Cc: pgsql-sql@postgresql.org
Cc: pgsql-general@postgresql.org
Cc: pgsql-admin@postgresql.org
Subject: Re: [GENERAL] Creating Textfiles out of tables
Date: Tue, 16 Feb 1999 14:44:00 +0100
Message-ID: <36C97620.12FE717F@bo.nettuno.it> (raw)
References: <36C96D05.8F6676D8@linux.stuco.uni-klu.ac.at>



Martin Möderndorfer ha scritto:

> Hi,
>
> i have some tables and want to extract results of a query on them into a
> text-file. it should be possible to insert ":","{" between the different
> tuples.
>
> Any ideas
>
> MArtin
> mmoedern@linux.stuco.uni-klu.ac.at

psql joe

joe=> \t
turned off output headings and row count
joe=> \f :
field separator changed to ':'
joe=> select * from btmm;
a      : 13.2:FO
b      : 1.32:FO
c      :31.32:RO

if you type \o file_name
the result will be stored to a file named "file_name".

--
                               - Jose' -

And behold, I tell you these things that ye may learn wisdom; that ye may
learn that when ye are in the service of your fellow beings ye are only
in the service of your God.                - Mosiah 2:17 -





view thread (3+ messages)  latest in thread

Message-ID: <36C97620.12FE717F@bo.nettuno.it>
Permalink:  ../36C97620.12FE717F@bo.nettuno.it/
Also on:    postgresql.org/message-id/36C97620.12FE717F@bo.nettuno.it

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: sferac@bo.nettuno.it, mmoedern@linux.stuco.uni-klu.ac.at, pgsql-general@postgresql.org, pgsql-admin@postgresql.org
  Subject: Re: [GENERAL] Creating Textfiles out of tables
  In-Reply-To: <36C97620.12FE717F@bo.nettuno.it>
  References: <36C96D05.8F6676D8@linux.stuco.uni-klu.ac.at> <36C97620.12FE717F@bo.nettuno.it>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox