I have two tables with product numbers. They both are limited to 12 characters (varchar(12)
). One of them (product A) has a number structure like this:
Product No:
2345
568
89
And product B has the same exact numbers but with zeros to fill the 12 characters missing. It is something like this:
Product No:
000000002345
000000000568
000000000089
I just want to modify product A table to add the zeros at the beginning of the sequence. I had an idea with REPLACE()
function but to add the zeros I might need another function. Thanks for reading and sorry for the time.