pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
To: Milen <milend@ansco.com>
To: pgsql-sql@postgresql.org
Subject: Re: batch file
Date: Fri, 25 May 2001 19:19:47 +0100
Message-ID: <006501c0e547$49a89e80$1001a8c0@archonet.com> (raw)
References: <01C0E51F.F2E673F0.milend@ansco.com>

From: "Milen" <milend@ansco.com>
> 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.

You can do exactly that.

Use "man psql" to find out about the -f option or the \i option.

- Richard Huxton




view thread (7+ messages)  latest in thread

Message-ID: <006501c0e547$49a89e80$1001a8c0@archonet.com>
Permalink:  ../006501c0e547$49a89e80$1001a8c0@archonet.com/
Also on:    postgresql.org/message-id/006501c0e547$49a89e80$1001a8c0@archonet.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: dev@archonet.com, milend@ansco.com
  Subject: Re: batch file
  In-Reply-To: <006501c0e547$49a89e80$1001a8c0@archonet.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