第一个这样
update 客户资料 set 附件情况='无' where 附件情况 is null
第二个
先这样
update pos付方式 set 自定义编码=left(自字义编码,5)