PHV - Thanks for the quick reply. I don't want to change the column from varchar to integer, but only want to update all the rows to reflect the results shown in the example I gave.
I have a column named CardNumber in a table named Cards (fromatted 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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.