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: 5.2.1.1.0.20040603154437.03236010@pop6.sympatico.ca (view raw or flat)
Thread:
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-2014 The PostgreSQL Global Development Group