From: Jason Earl <jdearl@yahoo.com>
To: Milen <milend@ansco.com>
To: 'pgsql-sql@postgresql.org.' <pgsql-sql@postgresql.org>
Subject: Re: batch file
Date: Fri, 25 May 2001 10:53:34 -0700 (PDT)
Message-ID: <20010525175334.29272.qmail@web10005.mail.yahoo.com> (raw)
In-Reply-To: <01C0E51F.F2E673F0.milend@ansco.com>
I just put files commands that I want in some file
like "foo.sql" and then do:
psql mydatabase -f foo.sql
Is this what you are looking for?
Jason
--- Milen <milend@ansco.com> wrote:
> Hi all!,
>
> I want to execute several SQL statements one after
> another.
> Does anyone know if it is possible to create
> something like a "batch file"
> which contains all SQL commands I want.
>
> Best Regards:
> Milen
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
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: jdearl@yahoo.com, milend@ansco.com
Subject: Re: batch file
In-Reply-To: <20010525175334.29272.qmail@web10005.mail.yahoo.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