Oralce PL/SQL examples of recursion (#91)

This commit is contained in:
Timur Tarasenko
2018-10-18 10:27:58 -05:00
committed by Aditya Bhargava
parent 31412a0b96
commit ac08df2ee7
3 changed files with 72 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
CREATE OR REPLACE PROCEDURE greet2(names IN VARCHAR2 )
IS
BEGIN
dbms_output.put_line('how are you, ' || names || '?');
END;
/
CREATE OR REPLACE PROCEDURE bye
IS
BEGIN
dbms_output.put_line('ok bye!');
END;
/
CREATE OR REPLACE PROCEDURE greet(names IN VARCHAR2)
IS
BEGIN
dbms_output.put_line('hello, ' || names || '!');
greet2(names);
dbms_output.put_line('getting ready to say bye...');
bye();
END;
/
SET SERVEROUTPUT ON
BEGIN
greet('adit');
END;