Select dump - Mailing list pgsql-novice

From SG Edwards
Subject Select dump
Date
Msg-id 1115817310.4282055ee1316@sms.ed.ac.uk
Whole thread Raw
Responses Re: [despammed] Select dump  (Andreas Kretschmer <akretschmer@despammed.com>)
Re: Select dump  (Geoffrey <esoteric@3times25.net>)
List pgsql-novice
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:

John, 21, Edinburgh

pgsql-novice by date:

Previous
From: "Prasad dev"
Date:
Subject: Trigger
Next
From: Andreas Kretschmer
Date:
Subject: Re: [despammed] Select dump