Help: How to store query output in a file !!!

From: NEERAJ BANSAL <nbansal1(at)email(dot)mot(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Help: How to store query output in a file !!!
Date: 2000-06-13 14:37:16
Message-ID: 3946471C.3A4F42DE@email.mot.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Does anyone knows how do you send query output to a file???
I tried following but it does not work:
select * from <table name> \o <file name> ;

Please let me know if anyone knows!! Thanks in advance

Neeraj
neeraj_b(at)hotmail(dot)com

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Marc Gehling 2000-06-13 15:49:50 pg_dump error: cache lookup failed
Previous Message David C. Hartwig Jr 2000-06-13 14:18:58 Re: Compression on ODBC?