Re: Query from shell - Mailing list pgsql-sql

From Jim Buttafuoco
Subject Re: Query from shell
Date
Msg-id 20060406225547.M95598@contactbda.com
Whole thread Raw
In response to Re: Query from shell  ("Owen Jacobson" <ojacobson@osl.com>)
List pgsql-sql
or

psql db <<EOQ
select...;
delete...;
update...;
\q
EOQ



---------- Original Message -----------
From: "Owen Jacobson" <ojacobson@osl.com>
To: <pgsql-sql@postgresql.org>
Sent: Thu, 6 Apr 2006 14:37:51 -0700
Subject: Re: [SQL] Query from shell

> 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.
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster
------- End of Original Message -------



pgsql-sql by date:

Previous
From: kevin.kempter@dataintellect.com
Date:
Subject: Re: Query from shell
Next
From: Daniel Browning
Date:
Subject: Modeling trees with Nested Sets and Nested Intervals