Re: executing sql statements from file - Mailing list pgsql-general

From Lee Harr
Subject Re: executing sql statements from file
Date
Msg-id amitcu$85g$1@news.hub.org
Whole thread Raw
List pgsql-general
In article <3d8c77ae$0$13217$e4fe514c@dreader4.news.xs4all.nl>, Frank wrote:
> Hello,
>
> how can I execute a bunch of sql queries from a file? This is normally done
> by connecting to the database and something like
>
>=> start /tmp/hutsemefluts.sql
> or
>=> @ /tmp/hutsemefluts.sql
>
> but how can this by done in PostgreSQL?
>
> thanks
>

\i /tmp/hutsemefluts.sql



pgsql-general by date:

Previous
From: Björn Lundin
Date:
Subject: Re: shell scripting
Next
From: Greg Stark
Date:
Subject: Re: IN vs EXIIST