Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CREATE OR REPLACE PROCEDURE ReverseOf(input IN VARCHAR2) IS
- REVERSE VARCHAR2(50);
- BEGIN
- FOR i IN REVERSE 1..LENGTH(input) LOOP
- REVERSE := REVERSE||''||SUBSTR(input, i, 1);
- END LOOP;
- DBMS_OUTPUT.put_line('The reverse of '||input||' is '||REVERSE||'.');
- END;
- /
- EXEC ReverseOf('TSEC');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement