pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Albert REINER <areiner@tph.tuwien.ac.at>
To: pgsql-sql@postgresql.org
Subject: Re: Automated scripting...
Date: Wed, 31 Jan 2001 18:25:12 +0100
Message-ID: <20010131182512.B7533@frithjof> (raw)
In-Reply-To: <20010130155453.A29901@expressus.com>
References: <20010130155453.A29901@expressus.com>

Saluton,

On Tue, Jan 30, 2001 at 03:54:53PM -0800, jkakar@expressus.com wrote:
...
> I'm building a script to create a relatively large database.  At some
> point in the script I would like to be able to save values into
> variables so that I can use them to populate rows.

Your script will be handled via psql, right? Then you can use \set and
interpolation, as described in `man psql`.

Albert.


-- 

--------------------------------------------------------------------------
Albert Reiner                                   <areiner@tph.tuwien.ac.at>
Deutsch       *       English       *       Esperanto       *       Latine
--------------------------------------------------------------------------



view thread (3+ messages)

Message-ID: <20010131182512.B7533@frithjof>
Permalink:  ../20010131182512.B7533@frithjof/
Also on:    postgresql.org/message-id/20010131182512.B7533@frithjof

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: areiner@tph.tuwien.ac.at
  Subject: Re: Automated scripting...
  In-Reply-To: <20010131182512.B7533@frithjof>
  References: <20010130155453.A29901@expressus.com> <20010131182512.B7533@frithjof>

* 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