Re: Query from shell

From: Bricklen Anderson <banderson(at)presinet(dot)com>
To: Owen Jacobson <ojacobson(at)osl(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Query from shell
Date: 2006-04-06 21:39:44
Message-ID: 44358AA0.7000201@presinet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Owen Jacobson wrote:
> Judith wrote:
>
>
>> Hi every body, somebody can show me hot to execute a
>>query from a shell
>
>
> echo QUERY HERE | psql databasename
>
> Or, if you want to run several queries, run psql and run your queries there.
>
or
psql -d <dbname> -c "your query here"

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Terry Lee Tucker 2006-04-06 21:40:47 Re: Query from shell
Previous Message Owen Jacobson 2006-04-06 21:37:51 Re: Query from shell