Mssql elegant way to mask a character set
I would like to have a fixed number of characters, say 10 (xxxxxxxxxx), and the input can be some varchar let say (abcd). The required output in this case is xxxxxxabcd.
Is there any neat way to avoid looping for 10-len (abcd)?
change
This quest can be a duplicate if honored by the accepted answer, but not by asking the question. Otherwise, I will be able to find the existing question and will not create a duplicate.
+3
source to share
2 answers