Skip site navigation (1) Skip section navigation (2)

Re: Executing sql script

From: Frank Bax <fbax(at)sympatico(dot)ca>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: Executing sql script
Date: 2004-06-03 19:45:10
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-novice
At 03:23 PM 6/3/04, Loftis, Charles E wrote:
>I want to execute the sql stored in a directory on my system.
>How do I submit this file, in batch, to pgsql to be executed?

If your file is script.sql, then:
         psql < script.sql

pgsql-novice by date

Next:From: Joe EricksonDate: 2004-06-03 19:47:39
Subject: Re: Executing sql script
Previous:From: Joe EricksonDate: 2004-06-03 19:45:03
Subject: Re: Executing sql script

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group