Run time input

From: "Ashish Karalkar" <ashish(dot)karalkar(at)info-spectrum(dot)com>
To: <pgsql-novice(at)postgresql(dot)org>
Subject: Run time input
Date: 2007-03-12 05:36:22
Message-ID: 00a301c76468$64597870$170211ac@LIONKING.COM
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Hello All,
I am trying to take runtime user input to the SQl script

\echo -n 'Enter value: '

\set x `read x && echo $REPLY`

Can anybody tell me what exactly the `read x && echo $REPLY` is doing.

and how can i access that X variable

like if i Want to display it like \echo X

With Regards

Ashish Karalkar

Browse pgsql-novice by date

  From Date Subject
Next Message Jaromír Kamler 2007-03-12 10:18:39 Re: PostgreSQL and import/export to dbf and mdb
Previous Message Duncan Garland 2007-03-10 13:17:17 Re: System Log