Re: Newbie Question about User Input

From: Eric Z. Beard <ericzbeard_at_yahoo.com>
Date: 21 Oct 2002 06:32:51 -0700
Message-ID: <8684f290.0210210532.71f2ecb8_at_posting.google.com>


> I would like to create a procedure that gets a value from the user and
> uses that value in an IF-THEN-ELSE statement.
>
> set serveroutput on;
>
> declare
> user_x char(1);
> begin
> &user_x;
> Upper('user_x');
>
> if user_x = 'A' then

You use &variables like constants, so what you want will look more like:

IF UPPER('&user_x') = 'A'
THEN or maybe

user_x CHAR(1) := '&user_input';

EZB Received on Mon Oct 21 2002 - 15:32:51 CEST

Original text of this message