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

From Anjan Dave
Subject Re: How to use psql -c?
Date
Msg-id 203C7FC3FF2D7A4588CE0429A87F3C9A06FF17@vt-pe2550-001.vantage.vantage.com
Whole thread Raw
In response to How to use psql -c?  (Charles Haron <charles.haron@cognitive.com>)
List pgsql-admin
Chuck,

Report bugs to <pgsql-bugs@postgresql.org>.
-bash-2.05b$ psql -c 'select version();' template1
                                                 version

------------------------------------------------------------------------
---------------------------------
 PostgreSQL 7.2.3 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 3.2
20020903 (Red Hat Linux 8.0 3.2-7)
(1 row)

-bash-2.05b$


Thanks,
Anjan

-----Original Message-----
From: Charles Haron [mailto:charles.haron@cognitive.com]
Sent: Monday, December 29, 2003 3:49 PM
To: pgsql-admin@postgresql.org
Subject: [ADMIN] How to use psql -c?


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: Michael Fuhr
Date:
Subject: Re: How to use psql -c?
Next
From: Charles Haron
Date:
Subject: Re: How to use psql -c?