Re: Query from shell - Mailing list pgsql-sql

From Terry Lee Tucker
Subject Re: Query from shell
Date
Msg-id 200604061740.47691.terry@esc1.com
Whole thread Raw
In response to Query from shell  (Judith <jaltamirano@correolux.com.mx>)
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: kevin.kempter@dataintellect.com
Date:
Subject: Re: Query from shell