select
*
from
table
where
condition
into
outfile '/tmp/result'
About Me
Showing posts with label output. Show all posts
Showing posts with label output. Show all posts
Saturday, 27 February 2010
Thursday, 24 September 2009
psql output to file
Below is the command to redirect psql output to a file.
psql> \o /tmp/file.txt
psql> select * from table
This should allow output to custom file.
psql> \o /tmp/file.txt
psql> select * from table
This should allow output to custom file.
Subscribe to:
Posts (Atom)
