Thanks to visit codestin.com
Credit goes to postgrespro.com

Re: Query from shell - Mailing list pgsql-sql

From Terry Lee Tucker
Subject Re: Query from shell
Date
Msg-id [email protected]
Whole thread Raw
In response to Query from shell  (Judith <[email protected]>)
List pgsql-sql
On Thursday 06 April 2006 02:37 pm, Judith saith:
>        Hi every body, somebody can show me hot to execute a query from a
> shell
>
>     thanks in advanced!!!
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
>                http://archives.postgresql.org

Do this:
psql  -c 'SELECT code FROM cust' rnd;



pgsql-sql by date:

Previous
From: Bricklen Anderson
Date:
Subject: Re: Query from shell
Next
From: [email protected]
Date:
Subject: Re: Query from shell