Calling psql from a shell script

From: Wayne Johnson <wdtj(at)yahoo(dot)com>
To: wdtj(at)yahoo(dot)com
Subject: Calling psql from a shell script
Date: 2001-06-28 00:44:30
Message-ID: 3B3A7DEE.1FE009CE@yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

I am writing some shell scripts that need to access Postgresql.

What is the best way to select a record and have shell variables set to
the results.

Is there a way to get psql to output data in quoted CSV?

TIA.

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Jean-Sébastien ANDUJAR 2001-06-28 08:56:21 libpq on windows
Previous Message Louisa Thue 2001-06-26 19:46:44 Question