0

I am trying to update a column so that it follows a sequence of numbers but this is only for a small portion of rows in the column.

I am using IB expert. The table is called CUSTOMERS and the column is called CUSTOMERCODE.

The CUSTOMERCODES are currently in alphanumeric so I need to change them to numeric only.

The customercodes are from 0000000000BM001 to 000000000BM099.

4

1 回答 1

0

这里是Update Query

update CUSTOMERS
set CUSTOMERCODE=SUBSTRING(CUSTOMERCODE,len(CUSTOMERCODE)-2,2) 
where CUSTOMERCODE>= '0000000000BM001'
and CUSTOMERCODE<= '000000000BM099'
于 2013-05-10T07:41:30.027 回答