I have a column named CardNumber in a table named Cards (formatted as varchar) with numbers ranging from 1 to 65534. I am trying to change all the card numbers to start with 84 and fill with 0's until the card number and finish with 9 characters. So it would look like this.
Old column
6
19
234
8521
45956
Updated column
840000006
840000019
840000234
840008521
840045956
I would like to leave the fromat as varchar. Thanks for any help in advance.
Old column
6
19
234
8521
45956
Updated column
840000006
840000019
840000234
840008521
840045956
I would like to leave the fromat as varchar. Thanks for any help in advance.
Comment