Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Sql query to mask Phone number digits with specific values

srikanth bJan 1 2022

Can we achieve without regex_replace function.
SELECT LPAD(SUBSTR('9014605402',5),LENGTH('9014605402'),'X') FROM DUAL

I/P :
1234924005
9806204335

Expected result :
XXXX924XX5
XXXX204XX5

This post has been answered by Hub Tijhuis on Jan 1 2022
Jump to Answer
Comments
Post Details
Added on Jan 1 2022
3 comments
9,294 views