pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: DalTech - Continuing Technical Education <CTE@Dal.Ca>
To: pgsql-sql@postgresql.org
Subject: Running queries from scripts.
Date: Thu, 6 Jul 2000 12:50:23 -0300
Message-ID: <011001bfe761$e57a3a60$5911be86@cte.Dal.Ca> (raw)

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

view thread (3+ messages)  latest in thread

Message-ID: <011001bfe761$e57a3a60$5911be86@cte.Dal.Ca>
Permalink:  ../011001bfe761$e57a3a60$5911be86@cte.Dal.Ca/
Also on:    postgresql.org/message-id/011001bfe761$e57a3a60$5911be86@cte.Dal.Ca

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: CTE@Dal.Ca
  Subject: Re: Running queries from scripts.
  In-Reply-To: <011001bfe761$e57a3a60$5911be86@cte.Dal.Ca>
  References: <011001bfe761$e57a3a60$5911be86@cte.Dal.Ca>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox