From: Geoffrey <esoteric@3times25.net>
To: pgsql-sql@postgresql.org
Subject: Re: [despammed] Insert psql commands inside a script
Date: Sat, 23 Apr 2005 09:46:20 -0400
Message-ID: <426A51AC.4070505@3times25.net> (raw)
In-Reply-To: <20050423133042.GA21979@winnie.fuhr.org>
References: <2F1DE8CC97C00645B9FEA539982DA22401900D5A@USEA-EXCH4.na.uis.unisys.com>
<20050423060538.GA19935@webserv.wug-glas.de>
<426A3C74.8040309@3times25.net>
<20050423133042.GA21979@winnie.fuhr.org>
Michael Fuhr wrote:
> On Sat, Apr 23, 2005 at 08:15:48AM -0400, Geoffrey wrote:
>
>>Or you can do the following:
>>
>>psql database < sqlcode
>>
>>where sqlcode contains your sql.
>
>
> That command redirects the standard input from the file named
> sqlcode; the requirement says NOT to use an external file.
My bad, I misread the post as indicating he wanted to use an external
file. Too early on a Saturday with a late Friday and not enough coffee
yet...
--
Until later, Geoffrey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: esoteric@3times25.net
Subject: Re: [despammed] Insert psql commands inside a script
In-Reply-To: <426A51AC.4070505@3times25.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox