sql server - update a column so that it follows a sequence of numbers -
i trying update
column follows sequence of numbers small portion of rows in column.
i using ib expert. table called customers
, column called customercode
.
the customercodes
in alphanumeric
need change them numeric
only.
the customercodes
0000000000bm001 000000000bm099.
here update query
update customers set customercode=substring(customercode,len(customercode)-2,2) customercode>= '0000000000bm001' , customercode<= '000000000bm099'
Comments
Post a Comment