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

From markus jais
Subject how to load a sql-file????
Date
Msg-id 3AC1094F.63A28661@web.de
Whole thread Raw
Responses Re: how to load a sql-file????  (Zachary Beane <xach@xach.com>)
Re: how to load a sql-file????  (Jason Earl <jdearl@yahoo.com>)
Re: how to load a sql-file????  (Marek Pętlicki <marpet@buy.pl>)
List pgsql-general
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.

in MySQL I can type something like in Bash on my linux box:

$ mysql -u root -p < file.sql

then the file file.sql is read.

can you tell me how to do this with postgresql???
thanks a lot.

markus


--
Markus Jais
http://www.mjais.de
info@mjais.de
The road goes ever on and on - Bilbo Baggins


pgsql-general by date:

Previous
From: Hunter Hillegas
Date:
Subject: Logging Queries
Next
From: Zachary Beane
Date:
Subject: Re: how to load a sql-file????