Reverse a string in Oracle without using reverse
How do I reverse a dtring in Oracle without using PL/SQL and without using the reverse function??
Reversing string in Oracle without using reverse function
How do I reverse a string using only Oracle SQL without using the reverse function??
I just took employees tables last_name. See the code.
Code
SELECT substr(last_name,4,1)||substr(last_name,4,2)||substr(last_name,2,1)||substr(last_name,1,1) "Reversing Name" FROM employees WHERE employee_id=100
Are you looking for something like this?"plsql function revstring(instring varchar2) return varchar2 is rstring varchar2(750) := ; iCnt pls_integer; begin for icnt in reve...