pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Julien Rouhaud <rjuju123@gmail.com>
To: Kapil Kr. Khandelwal <kapilk@cscape.in>
Cc: rod@iol.ie <rod@iol.ie>
Cc: pgadmin-support@postgresql.org <pgadmin-support@postgresql.org>
Subject: Re: Fwd: How to run query by command prompt in Postgres
Date: Wed, 27 Jun 2012 14:11:19 +0200
Message-ID: <608028210012020063@unknownmsgid> (raw)
In-Reply-To: <CAMDMQnAwurTAu4J=C5ucJW1tGtrsVgixJiXerZuxBTRDOX69aQ@mail.gmail.com>
References: <CAMDMQnCCQrVQG=0GW-qsq-Mk-vxa7quXbDZVSQ6_SntpersXFg@mail.gmail.com>
	<CAMDMQnAfAw4djXG5E5zoSbSfUq0yR8dCTsnb5uGKCU-ysWr-5w@mail.gmail.com>
	<4FEAF3BA.40707@iol.ie>
	<CAMDMQnAwurTAu4J=C5ucJW1tGtrsVgixJiXerZuxBTRDOX69aQ@mail.gmail.com>

Le 27 juin 2012 à 14:06, "Kapil Kr. Khandelwal" <kapilk@cscape.in> a écrit :

Dear Sir

I want to run sql query, without any file. I have connected the db, but not
getting success run sql query.

Did you end your input with a ;
Without it, pressing return will just add another line to your query


I can run by file, if you can provide me steps of this.

Looking forward to positive response from your side. Thanks in advance.


Thanks & Regards

Kapil Kr. Khandelwal
M: 09694179109
CodeScape Consultants, Jaipur



On Wed, Jun 27, 2012 at 5:21 PM, Raymond O'Donnell <rod@iol.ie> wrote:

> On 27/06/2012 12:18, Kapil Kr. Khandelwal wrote:
> >
> >
> > Dear Team
> >
> > I want to a favour from your side. I want to know, how to run sql query
> > by command prompt in postgres sql.
>
> psql -f file-with-query.sql your-database
>
>
> http://www.postgresql.org/docs/9.1/static/app-psql.html
>
>
> Ray.
>
>
> --
> Raymond O'Donnell :: Galway :: Ireland
> rod@iol.ie
>
>
>

view thread (21+ messages)  latest in thread

Message-ID: <608028210012020063@unknownmsgid>
Permalink:  ../608028210012020063@unknownmsgid/
Also on:    postgresql.org/message-id/608028210012020063@unknownmsgid

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: rjuju123@gmail.com, kapilk@cscape.in, rod@iol.ie, pgadmin-support@postgresql.org
  Subject: Re: Fwd: How to run query by command prompt in Postgres
  In-Reply-To: <608028210012020063@unknownmsgid>
  References: <CAMDMQnCCQrVQG=0GW-qsq-Mk-vxa7quXbDZVSQ6_SntpersXFg@mail.gmail.com> <CAMDMQnAfAw4djXG5E5zoSbSfUq0yR8dCTsnb5uGKCU-ysWr-5w@mail.gmail.com> <4FEAF3BA.40707@iol.ie> <CAMDMQnAwurTAu4J=C5ucJW1tGtrsVgixJiXerZuxBTRDOX69aQ@mail.gmail.com> <608028210012020063@unknownmsgid>

* 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