I guess I now need to replace the middle segment of what is retrieved with asterisks.
So, the string in the middle '99999988' should be replaced with '********'. I am basically trying to mask the middle sement string. The length of the original string is not known but the first segment is 6 characters and 3 segment is 4 characters. The middle sement can be anywhere between 5 to 10 characters. In the example below, its 8 characters.
Can I use REPLACE or TRANSALE functions in here ?
select substr('456712999999881234', 1, 6) a,
substr('456712999999881234', 7, length('456712999999881234') - 10) b,
substr('456712999999881234', -4) c
from dual;
Thanks