Re: How do I pipe output from query to a file in PostgreSQL?

Поиск
Список
Период
Сортировка
Искать
От
Kevin Kempter
Тема
Re: How do I pipe output from query to a file in PostgreSQL?
Дата
Msg-id
200910261503.25153.kevink@consistentstate.com
Ответ на
Список
Дерево обсуждения
How do I pipe output from query to a file in PostgreSQL? "Penrod, John" <John.Penrod@STJUDE.ORG>
Re: How do I pipe output from query to a file in PostgreSQL? Kevin Kempter <kevink@consistentstate.com>
Re: How do I pipe output from query to a file in PostgreSQL? Raymond O'Donnell <rod@iol.ie>
On Monday 26 October 2009 12:03:13 Penrod, John wrote:
> In oracle:
> 
> SPOOL filename.txt
> Select * from customer;
> SPOOL OFF
> 
> Results are piped to filename.txt
> 
> 
> How do I do this from the psql command line?
> 
> 
> John J. Penrod, OCP
> Oracle/EnterpriseDB Database Administrator
> St. Jude Children's Research
>  Hospital 10VgnVCM1000000e2015acRCRD&plt=STJGENSEGOOGL0000009&gclid=CM6Imp6I0Z0CFSMND
> QodNXLerQ> 262 Danny Thomas Place, MS 0574
> Memphis, TN  38105
> Phone: (901) 595-4941
> FAX: (901) 595-2963
> john.penrod@stjude.org
> 
> 
> 
> 
>   ________________________________
> Email Disclaimer: www.stjude.org/emaildisclaimer
> 


psql
postgres=# \o file.out
postgres=# select * from customer;
В списке pgsql-general по дате отправления
От: Penrod, John
Дата:
От: Raymond O'Donnell
Дата:
FAQ