Run time input

Lists: pgsql-novice
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
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