Dear Stackoverflow members,
I have a field in a database
BH90ABBB01010215529101
How do i amend it to replace the 9th to 16th characters with X
BH90ABBBXXXXXXXX29101
Dear Stackoverflow members,
I have a field in a database
BH90ABBB01010215529101
How do i amend it to replace the 9th to 16th characters with X
BH90ABBBXXXXXXXX29101
What you need is the STUFF function.
Like this:
SELECT STUFF('BH90ABBB01010215529101', 9, 9, 'XXXXXXXX')