I had a similar problem in: Generate equal length strings from numbers by padding with "0"? - #2 by fredrikekre, except I needed padding on the left. There is also an rpad
function available. I hope it helps.
3 Likes