一、字符串处理
1. 字符填充
1) 右填充
=A1&REPT(" ",10-LEN(A1))
2) 右填充
=REPT(" ",10-LEN(A1))&A1
2. 内容替换
SUBSTITUTE function - Microsoft Support
=SUBSTITUTE("alter table tbl_name;", "tbl_name", D2)
二、日期处理
1. 自定义格式
1) 右填充
=A1&REPT(" ",10-LEN(A1))
2) 右填充
=REPT(" ",10-LEN(A1))&A1
SUBSTITUTE function - Microsoft Support
=SUBSTITUTE("alter table tbl_name;", "tbl_name", D2)