| От | P.J. \"Josh\" Rovero |
|---|---|
| Тема | Re: Redirecting query's output to a textfile? |
| Дата | |
| Msg-id | 3C6D47AD.6000402@sonalysts.com обсуждение исходный текст |
| Ответ на | Re: Redirecting query's output to a textfile? ("Thalis A. Kalfigopoulos" <thalis@cs.pitt.edu>) |
| Список | pgsql-general |
for a single command, \g. Example select * from employees \g '/home/dbadmin/employees.tab' Note that there isn't a semicolon at the end. '\g' takes care of that. '\g' will also let you pipe the table output to other commands........ Thalis A. Kalfigopoulos wrote: > Depends on how you place the query? I assume you are asking about the psql client, so before the query just do: > \o output.txt > -- P. J. "Josh" Rovero Sonalysts, Inc. Email: rovero@sonalysts.com www.sonalysts.com 215 Parkway North Work: (860)326-3671 or 442-4355 Waterford CT 06385 ***********************************************************************
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера