Re: psql scripting tutorials

From: Artacus <artacus(at)comcast(dot)net>
To:
Cc: Postgres General List <pgsql-general(at)postgresql(dot)org>
Subject: Re: psql scripting tutorials
Date: 2008-09-12 05:24:22
Message-ID: 48C9FD06.1080107@comcast.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Artacus 2008-09-12 06:12:19 If there were no OS databases
Previous Message Artacus 2008-09-12 05:11:13 Re: declare column update expression