Quick How To: Record SQL Results to Text File in PostgreSQL
December 2, 2009
Once you connected using psql,
# \o /tmp/myrecord.txt
Then run any SQL queries you want. They wont be visible on screen But will be recored to /tmp/myrecord.txt
# SELECT * FROM my_super_dummy_table;
#\q
December 5, 2009 at 11:34 am
Hey very nice blog!! Man .. Beautiful .. Amazing .. I will bookmark your blog and take the feeds also…
December 7, 2009 at 1:09 pm
[...] schermo, ma sarà recored a / tmp / myrecord.txt # SELECT * FROM my_super_dummy_table; # q From: N Rao Lakkakula’s Blog. Continue reading. Categorie:Senza categoria Tag: Commenti (0) Trackbacks (0) Lascia un [...]