| От | Michael Fuhr |
|---|---|
| Тема | Re: query to file |
| Дата | |
| Msg-id | 20051019000513.GA44530@winnie.fuhr.org обсуждение исходный текст |
| Ответ на | query to file (Judith Altamirano Figueroa <jaltamirano@correolux.com.mx>) |
| Список | pgsql-sql |
On Tue, Oct 18, 2005 at 06:03:59PM -0500, Judith Altamirano Figueroa wrote: > Excuse me, how can I send a query to a file?, for example the result of > this query: > > select id_articulo, articulo, color_code from articulos; If you have a shell on a platform that supports input/output redirection then you could redirect psql's output: psql -c 'select ...' > filename From within psql you could use \g or \o; see the documentation for more information. http://www.postgresql.org/docs/8.0/interactive/app-psql.html If you're using some other client then consult its documentation. -- Michael Fuhr
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера