Re: [despammed] Insert psql commands inside a script

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Geoffrey <esoteric(at)3times25(dot)net>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: [despammed] Insert psql commands inside a script
Date: 2005-04-23 13:30:42
Message-ID: 20050423133042.GA21979@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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.

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Geoffrey 2005-04-23 13:46:20 Re: [despammed] Insert psql commands inside a script
Previous Message Geoffrey 2005-04-23 12:15:48 Re: [despammed] Insert psql commands inside a script