Re: Running queries from scripts. - Mailing list pgsql-sql

From DalTech - Continuing Technical Education
Subject Re: Running queries from scripts.
Date
Msg-id 013c01bfe765$8304b460$5911be86@cte.Dal.Ca
Whole thread Raw
In response to Re: Running queries from scripts.  (Margarita Barvinok <brita@umich.edu>)
List 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



pgsql-sql by date:

Previous
From: Margarita Barvinok
Date:
Subject: Re: Running queries from scripts.
Next
From: John
Date:
Subject: confused by select.