Run time input - Mailing list pgsql-novice

From Ashish Karalkar
Subject Run time input
Date
Msg-id 00a301c76468$64597870$170211ac@LIONKING.COM
Whole thread Raw
List 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

 

 

pgsql-novice by date:

Previous
From: "Duncan Garland"
Date:
Subject: Re: System Log
Next
From: " Jaromír Kamler"
Date:
Subject: Re: PostgreSQL and import/export to dbf and mdb