I am trying to implement a simple conversion logic to clean up data on huge oracle table using nested replace function like below ,the rules are simple for now say
LKP_TABLE
-----------
LTD ----> LIMITED
COMP ----> COMPANY
SELECT REPLACE (REPLACE ( UPPER ('This is AA LTD_COMP') ,'LTD',
'LIMITED'),'COMP','COMPANY') from dual
--output : THIS IS AN AA LIMITED_COMPANY
But in future this can be a long list and I was wondering if there is any solution other than nested replace function. TRANSLATE function can replace only specific characters only.
Note : I have restrictions in creating a custom PL/SQL functions