Either:
SELECT * FROM table \g filename
to just output to the file 'filename', or:
select * from lineshoot \g |cat >> /solsolute/path/filename
to append to the file. Both in psql, or:
echo 'SELECT * FROM table' | psql database >> test.out
from your terminal
Kaydol:
Kayıt Yorumları (Atom)
Hiç yorum yok:
Yorum Gönder