haofenglemon 发表于 2013-1-13 18:22:20

把db2中的主键值后几位替换掉

update table set mainid=substr(id,1,M)||‘000’ where dept=‘’;
页: [1]
查看完整版本: 把db2中的主键值后几位替换掉