Re: batch file - Mailing list pgsql-sql

From Richard Huxton
Subject Re: batch file
Date
Msg-id 006501c0e547$49a89e80$1001a8c0@archonet.com
Whole thread Raw
In response to batch file  (Milen <milend@ansco.com>)
List pgsql-sql
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



pgsql-sql by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: batch file
Next
From: "J.Fernando Moyano"
Date:
Subject: corrupted tables !!!