解决方法:
/*查询异常档案资料,并且找出最大的正常id,插入临时表*/
select fpkid,2553587+ROW_NUMBER() over(order by fpkid) xuhao
into memberl
from T_ECC_MEMBER_L where fpkid like '100002%'
/*更新*/
update a set a.fpkid=xuhao From T_ECC_MEMBER_L a
inner join memberl b on a.FPKID=b.fpkid
select * From T_ECC_MEMBER_L where fpkid not like '100002%'
原文地址:http://blog.51cto.com/yataigp/2113415