\i FILENAME
If you do a \? you get a listing of all commands.
Jon
On Fri, 7 Feb 2003, Chris wrote:
> how can I run a SQL script from a text file from within PSQL.
>
> Like in Oracle from SQLPlus I would use the @scriptname.sql from the SQL prompt. What is the syntax from PSQL?
>
> Thanks
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
>