From: | "Jim Buttafuoco" <jim(at)contactbda(dot)com> |
---|---|
To: | "Owen Jacobson" <ojacobson(at)osl(dot)com>, <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: Query from shell |
Date: | 2006-04-06 22:56:42 |
Message-ID: | 20060406225547.M95598@contactbda.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
or
psql db <<EOQ
select...;
delete...;
update...;
\q
EOQ
---------- Original Message -----------
From: "Owen Jacobson" <ojacobson(at)osl(dot)com>
To: <pgsql-sql(at)postgresql(dot)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 -------
From | Date | Subject | |
---|---|---|---|
Next Message | Daniel Browning | 2006-04-07 07:28:15 | Modeling trees with Nested Sets and Nested Intervals |
Previous Message | Chris | 2006-04-06 22:24:32 | Re: pgcrypto-crypt |