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

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -