Re: How to use psql -c? - Mailing list pgsql-admin

From Sean Shanny
Subject Re: How to use psql -c?
Date
Msg-id 3FF0954A.3010502@earthlink.net
Whole thread Raw
In response to How to use psql -c?  (Charles Haron <charles.haron@cognitive.com>)
List pgsql-admin
from the command prompt:

psql -U password -d database -c "select tablename from pg_stats ;"

--sean

Charles Haron wrote:

>Hello,
>
>Can someone give me an example of how to use the -c option of psql? I can't
>seem to get it to work.
>
>Thanks,
>Chuck
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 6: Have you searched our list archives?
>
>               http://archives.postgresql.org
>
>
>


pgsql-admin by date:

Previous
From: Charles Haron
Date:
Subject: How to use psql -c?
Next
From: Michael Fuhr
Date:
Subject: Re: How to use psql -c?