Re: Running queries from scripts.

From: "DalTech - Continuing Technical Education" <CTE(at)Dal(dot)Ca>
To: "Margarita Barvinok" <brita(at)umich(dot)edu>
Cc: <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Running queries from scripts.
Date: 2000-07-06 16:16:16
Message-ID: 013c01bfe765$8304b460$5911be86@cte.Dal.Ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

> It works for me, for example, this way:
> athens% psql -d template1 -c "select datname from pg_database"

Thanks, I feel a little sheepish at not trying it with quotes around the
query, but the manuals don't mention that you have to enclose the query in
quotes when you use the -c option.

-Christopher Currie

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message John 2000-07-06 20:17:43 confused by select.
Previous Message Margarita Barvinok 2000-07-06 15:58:00 Re: Running queries from scripts.