Last active
December 31, 2015 13:19
-
-
Save bendem/7991920 to your computer and use it in GitHub Desktop.
Rot3 - PL/SQL.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- --------------------------------------------- | |
-- @Author: bendem | |
-- @Date: 2013-12-13 10:13:47 | |
-- @Last Modified by: bendem | |
-- @Last Modified time: 2013-12-16 19:34:14 | |
-- --------------------------------------------- | |
CREATE OR REPLACE PROCEDURE rot3( | |
parm_str in varchar2, | |
parm_ret out varchar2 | |
) is | |
begin | |
parm_ret := translate(parm_str, | |
'ABCDEFGHIJKLMNOPQRSTUVWXYZ', | |
'DEFGHIJKLMNOPQRSTUVWXYZABC' | |
); | |
parm_ret := translate(parm_ret, | |
'abcdefghijklmnopqrstuvwxyz', | |
'defghijklmnopqrstuvwxyzabc' | |
); | |
end rot3; | |
/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment