Re: Executing SQL commands in script files - Mailing list pgsql-novice

From Andres Ledesma
Subject Re: Executing SQL commands in script files
Date
Msg-id 001101c2d3ca$ee669530$02001aac@maradis
Whole thread Raw
In response to Executing SQL commands in script files  ("Susan Hoddinott" <susan@perth.dialix.com.au>)
List pgsql-novice
psql < scriptfile.txt
 
    or in a psql console
 
\i scriptfile.txt
 
----- Original Message -----
Sent: Thursday, February 13, 2003 5:15 AM
Subject: [NOVICE] Executing SQL commands in script files

Following reading through all the documentation it is not clear to me how to run a script file containing a number of SQL commands.  Presumably I do this through the psql interface but how do I tell it to run a script?

pgsql-novice by date:

Previous
From: Michael Weaver
Date:
Subject: Returning result sets.
Next
From: simran
Date:
Subject: Re: Executing SQL commands in script files