Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> AW: Read user input inside plsql code
Hi Kader Ben
If the code is supposed to run within the server as a stored procedure, I would write an additional java stored proc to communicate with a java program outside the server. let this program read and validate the user input and return it to the pl/sql procedure. Maybe there is an easy way of doing this within pl/sql, which I don't know of.
Stefan
-----Ursprüngliche Nachricht-----
Von: Kader Ben [mailto:kaderb_at_yahoo.com]
Gesendet: Montag, 12. Mai 2003 18:17
An: Multiple recipients of list ORACLE-L
Betreff: Read user input inside plsql code
Hi Listers,
I'm about writing a code to prompt user to enter some data and the code do some verification and subsequently prompt him for further information. Basically the pseudocode looks like the following:
define a = Y ; define b = N; define c = 10;
BEGIN
IF('&&a' = 'Y')
THEN
DBMS_OUTPUT.PUT_LINE('Enter value of c :');
ACCEPT c;
IF &&c = 10 THEN
The problem the ACCEPT nor PROMPT doesn't work inside
the
PL/SQL code. Do you have any suggestion to do the code
interact with user?
Thank you in advance.
Ben
Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services ---------------------------------------------------------------------To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: Stefan Jahnke
INET: Stefan.Jahnke_at_bov.de
Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services ---------------------------------------------------------------------To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Mon May 12 2003 - 12:17:08 CDT