pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bricklen Anderson <banderson@presinet.com>
To: Owen Jacobson <ojacobson@osl.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Query from shell
Date: Thu, 06 Apr 2006 14:39:44 -0700
Message-ID: <44358AA0.7000201@presinet.com> (raw)
In-Reply-To: <144D12D7DD4EC04F99241498BB4EEDCC28843E@nelson.osl.com>
References: <144D12D7DD4EC04F99241498BB4EEDCC28843E@nelson.osl.com>

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"



view thread (6+ messages)  latest in thread

Message-ID: <44358AA0.7000201@presinet.com>
Permalink:  ../44358AA0.7000201@presinet.com/
Also on:    postgresql.org/message-id/44358AA0.7000201@presinet.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: banderson@presinet.com, ojacobson@osl.com
  Subject: Re: Query from shell
  In-Reply-To: <44358AA0.7000201@presinet.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox