From: Andreas Kretschmer <akretschmer@spamfence.net>
To: pgsql-sql@postgresql.org
Subject: Re: input from a external text file......!
Date: Sat, 11 Mar 2006 11:33:18 +0100
Message-ID: <20060311103317.GA11598@KanotixBox> (raw)
In-Reply-To: <ad39daf90603110229s35aef6faj8764484c7bf78cad@mail.gmail.com>
References: <ad39daf90603110229s35aef6faj8764484c7bf78cad@mail.gmail.com>
AKHILESH GUPTA <akhilesh.davim@gmail.com> schrieb:
> Hi All.........!
> I just want to know one thing that is it possible with PGSQL that,
> if I want to insert and execute a query from a external text file instead of
> giving it at the pgsql prompt?
in psql, try simple "\i your_file.sql" to execute the commands within
this file.
HTH, Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect. (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly." (unknow)
Kaufbach, Saxony, Germany, Europe. N 51.05082°, E 13.56889°
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: akretschmer@spamfence.net
Subject: Re: input from a external text file......!
In-Reply-To: <20060311103317.GA11598@KanotixBox>
* 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