Re: how to load a sql-file???? - Mailing list pgsql-general

From Zachary Beane
Subject Re: how to load a sql-file????
Date
Msg-id 20010327155127.A17044@xach.com
Whole thread Raw
In response to how to load a sql-file????  (markus jais <mjais@web.de>)
List pgsql-general
On Tue, Mar 27, 2001 at 09:42:39PM +0000, markus jais wrote:
> hi,
> maybe this is somewhere in the docs but I couldn't find
> it.
> I am a beginner to postgresql and do not know much till now.
> I have bought a book on SQL and now I want to
> import the sample databases into postgresql
> they are provided as *.sql.

You can do "psql -f yourfile.sql" from the shell, or, from within
psql, type "\i yourfile.sql".

Zach
--
xach@xach.com     Zachary Beane     http://www.xach.com/

pgsql-general by date:

Previous
From: markus jais
Date:
Subject: how to load a sql-file????
Next
From: Jason Earl
Date:
Subject: Re: Supertypes?