Re: psql scripting tutorials - Mailing list pgsql-general

From Artacus
Subject Re: psql scripting tutorials
Date
Msg-id 48C9FD06.1080107@comcast.net
Whole thread Raw
In response to Re: psql scripting tutorials  (Kevin Hunter <hunteke@earlham.edu>)
List pgsql-general
> $ TEST=16; psql -c "select $TEST as \"input1\";"
> $ TEST=16; echo "select $TEST as \"input1\";" | psql

Yep that works. My coworker also suggested using <<EOF to simulate a
psql script.

pgsql-general by date:

Previous
From: Artacus
Date:
Subject: Re: declare column update expression
Next
From: Artacus
Date:
Subject: If there were no OS databases