From: | Marek Pętlicki <marpet(at)buy(dot)pl> |
---|---|
To: | markus jais <mjais(at)web(dot)de> |
Cc: | "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: how to load a sql-file???? |
Date: | 2001-03-28 22:17:31 |
Message-ID: | 20010329001731.B11788@marek.almaran.home |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Tuesday, March, 2001-03-27 at 21:42:39, 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.
>
> 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.
very similar:
psql dbname username < file.sql
should work
(you can well omit username if it is the same as your login name)
regards
--
Marek Pętlicki <marpet(at)buy(dot)pl>
From | Date | Subject | |
---|---|---|---|
Next Message | will trillich | 2001-03-28 22:55:55 | Re: how to load a sql-file???? |
Previous Message | Daniel ?erud | 2001-03-28 21:26:27 | Re: Re: Tables grow in size when issuing UPDATEs! Why?? |