Re: query to file

Поиск
Список
Период
Сортировка
От Michael Glaesemann
Тема Re: query to file
Дата
Msg-id 13FF7F39-FD42-4E4E-8575-2D3D65447413@myrealbox.com
обсуждение исходный текст
Ответ на query to file  (Judith Altamirano Figueroa <jaltamirano@correolux.com.mx>)
Список pgsql-sql
On Oct 19, 2005, at 8:03 , 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;

You don't mention what client you're using. In psql, you can use

\o path/to/file.txt

For more psql goodness, take a look at:

http://www.postgresql.org/docs/8.0/interactive/app-psql.html

Hope this helps!

Michael Glaesemann
grzm myrealbox com





В списке pgsql-sql по дате отправления:

Предыдущее
От: Judith Altamirano Figueroa
Дата:
Сообщение: query to file
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: query to file