Running queries from scripts.

From: "DalTech - Continuing Technical Education" <CTE(at)Dal(dot)Ca>
To: <pgsql-sql(at)postgresql(dot)org>
Subject: Running queries from scripts.
Date: 2000-07-06 15:50:23
Message-ID: 011001bfe761$e57a3a60$5911be86@cte.Dal.Ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

I was wondering if anyone could help me out with the syntax of running queries from a unix script.

psql -c select 'I am a dummy' -d dbname - never seems to work. I've tried variations on the command line, but to no success.

Does the -c option work?

Cheers,
Christopher Currie

__________________________________
Dalhousie: DalTech - CTE
Visit our Web site at http://www.cte.dal.ca
(902) 494-6079
(800) 565-1179

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Margarita Barvinok 2000-07-06 15:58:00 Re: Running queries from scripts.
Previous Message Andrey 2000-07-06 15:05:39 hierar questions