I have a number 10010005471

I would like to up date position 3 in the number to 5

so the number should now be 1051005471

any number in the 3 position of the field labeled (CODE_NUM) that has a 0 i would like to update it to 5 the number above is an example

How would i do this