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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-novice by date

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