Re: Include script within a script

From: Andreas Kretschmer <akretschmer(at)spamfence(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Include script within a script
Date: 2009-03-10 19:59:43
Message-ID: 20090310195943.GA9432@tux
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Bill Todd <pg(at)dbginc(dot)com> wrote:

> Is there any mechanism to include (call) one SQL script file from another?

You can use \i <path to your script>

Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect. (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly." (unknown)
Kaufbach, Saxony, Germany, Europe. N 51.05082°, E 13.56889°

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Vyacheslav Kalinin 2009-03-10 20:05:18 Re: pg_toast_temp_xx AND pg_temp_xx SCHEMAS
Previous Message Bill Todd 2009-03-10 19:55:46 Include script within a script