Re: how to load a sql-file????

From: Zachary Beane <xach(at)xach(dot)com>
To: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: how to load a sql-file????
Date: 2001-03-27 20:51:27
Message-ID: 20010327155127.A17044@xach.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)xach(dot)com Zachary Beane http://www.xach.com/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message thomas graichen 2001-03-27 21:00:40 Re: Re: Call for platforms
Previous Message Tom Lane 2001-03-27 20:44:08 Re: Re: Call for platforms