span8
span4
你好,
我得批量更新一大堆电话号码。
当前的格式是10位数字,从0开始。我需要把这些数字转换成区号+本地号码。
区号是三位数或四位数,后面跟一个破折号(-)。
区号存储在文件“phoneupdates”中。
输入和输出电话号码在“PhoneOutput”中
我希望我做什么:
当“Phone”列的前三或四位数字与在AreaCode中找到的这三或四位数字匹配时:然后用在AreaCodeUpdated中找到的数据替换它们。(绿色的输出示例)
示例文件:
phoneoutput.xlsxphoneupdating.xlsx
再次感谢,
艾德
嗨@edhere,希望这和预期一样。
StringConcatenator中的字符串表达式
@ value (AreaCode中)-@Substring (@ value(电话),@StringLength (@ value (AreaCode中)))
选择B。AreaCode, B.AreaCode||'-'||substr(A.Phone,5) as PhoneOutput from A inner join B on B.AreaCode = substr(A.Phone,1,4) union all select B.AreaCode, B.AreaCode||'-'||substr(A.Phone,4) from A inner join B on B.AreaCode = substr(A.Phone,1,3) union all select B.AreaCode, B.AreaCode||'-'||substr(A.Phone,3) from A inner join B on B.AreaCode = substr(A.Phone,1,2)
©2019安全亚搏在线软件公司法律