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