Search Postgresql Archives

"psql -At -F" export column from table to .csv

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi ,

I think you maybe familiar with this command:
psql -At -F "," -c "select ..." > query.csv

My question is:
is it possible to export several different columns from different
tables into the same .csv file; something like:  psql -At -F "," -c
"select ..." "select ..." "select ..." "select ..." > query.csv

Then, how to write the command in the correct way?

Thanks!

Nina



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux