Thread: Include another file in this SQL file?

Include another file in this SQL file?

From
Barry Hoggard
Date:
I tried to search for this in the archives, but couldn't find it.

I know I can use @@filename to include another file of sql commands in
Oracle.  How do I do this when passing a file to psql with the -f
command line option, or \i?


--
Barry Hoggard


Re: Include another file in this SQL file?

From
Tom Lane
Date:
Barry Hoggard <barry@hoggard.org> writes:
> I tried to search for this in the archives, but couldn't find it.
> I know I can use @@filename to include another file of sql commands in
> Oracle.  How do I do this when passing a file to psql with the -f
> command line option, or \i?

You seem to know the answer already: use \i.

            regards, tom lane