把db2中的主键值后几位替换掉 haofenglemon · 2010-12-31 12:50 · 数据库 · 数据库 · DB2 · Markdown update table set mainid=substr(id,1,M)||‘000’ where dept=‘’;