Re: [GENERAL] Creating Textfiles out of tables

From: "jose' soares" <sferac(at)bo(dot)nettuno(dot)it>
To: Martin Möderndorfer <mmoedern(at)linux(dot)stuco(dot)uni-klu(dot)ac(dot)at>
Cc: pgsql-sql(at)postgresql(dot)org, pgsql-general(at)postgresql(dot)org, pgsql-admin(at)postgresql(dot)org
Subject: Re: [GENERAL] Creating Textfiles out of tables
Date: 1999-02-16 13:44:00
Message-ID: 36C97620.12FE717F@bo.nettuno.it
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-sql

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(at)linux(dot)stuco(dot)uni-klu(dot)ac(dot)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 -

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Martin Möderndorfer 1999-02-16 17:49:43 Creating Textfiles out of tables II
Previous Message Martin Möderndorfer 1999-02-16 13:05:09 Creating Textfiles out of tables

Browse pgsql-sql by date

  From Date Subject
Next Message Martin Möderndorfer 1999-02-16 17:50:19 Creating Textfiles out of tables II
Previous Message Martin Möderndorfer 1999-02-16 13:05:09 Creating Textfiles out of tables