update acct_info set cust_no=replace(lpad(cust_no,7),' ','0') LPAD和RPAD分别是左补位和右补位 repalce(lpad(字段名,共几位),‘ ’,‘0’)