SET SERVEROUTPUT ON;
DECLARE
a number(3) := 100;
BEGIN
IF (a = 50 ) THEN
dbms_output.put_line('Value of a is 80' );
ELSIF ( a = 75 ) then
dbms_output.put_line('Value of a is 76' );
ELSE
dbms_output.put_line('None of the values is matching');
END IF;
dbms_output.put_line('Real value of a is: '|| a );
END;
/
DECLARE
a number(3) := 100;
BEGIN
IF (a = 50 ) THEN
dbms_output.put_line('Value of a is 80' );
ELSIF ( a = 75 ) then
dbms_output.put_line('Value of a is 76' );
ELSE
dbms_output.put_line('None of the values is matching');
END IF;
dbms_output.put_line('Real value of a is: '|| a );
END;
/
No comments:
Post a Comment