Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
17
Task/Integer-comparison/SQL-PL/integer-comparison-2.sql
Normal file
17
Task/Integer-comparison/SQL-PL/integer-comparison-2.sql
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
--#SET TERMINATOR @
|
||||
|
||||
SET serveroutput ON @
|
||||
|
||||
CREATE PROCEDURE COMPARISON (IN VAL1 INT, IN VAL2 INT)
|
||||
BEGIN
|
||||
IF (VAL1 < VAL2) THEN
|
||||
CALL DBMS_OUTPUT.PUT_LINE(VAL1 || ' less than ' || VAL2);
|
||||
ELSEIF (VAL1 = VAL2) THEN
|
||||
CALL DBMS_OUTPUT.PUT_LINE(VAL1 || ' equal to ' || VAL2);
|
||||
ELSEIF (VAL1 > VAL2) THEN
|
||||
CALL DBMS_OUTPUT.PUT_LINE(VAL1 || ' greater than ' || VAL2);
|
||||
END IF;
|
||||
END @
|
||||
CALL COMPARISON(1, 2) @
|
||||
CALL COMPARISON(2, 2) @
|
||||
CALL COMPARISON(2, 1) @
|
||||
Loading…
Add table
Add a link
Reference in a new issue