Re: [despammed] Insert psql commands inside a script

From: Geoffrey <esoteric(at)3times25(dot)net>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: [despammed] Insert psql commands inside a script
Date: 2005-04-23 13:46:20
Message-ID: 426A51AC.4070505@3times25.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Tadej Kanizar 2005-04-23 17:55:29 weird SQL statement question
Previous Message Michael Fuhr 2005-04-23 13:30:42 Re: [despammed] Insert psql commands inside a script