Link to home
Start Free TrialLog in
Avatar of GurcanK
GurcanK

asked on

Script To Save Results Of A Query in PostgreSQL

Dear Experts,

I'm very new to PostgreSQL and I just want to write a command line script for Windows which is going to connect to PostgreSQL, run a query and save result set in a text file. The format of the file should be CSV if possible.  

Could you please help me?

BR
ASKER CERTIFIED SOLUTION
Avatar of Mark Bullock
Mark Bullock
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial