对于地址,您不妨对照贵国区域/国家具体地址数据库加以验证。
我想清理作为M.D.和Phd/PH.d而节约的计量吸入器(请记住名称是1个领域)。
考虑了所有各种MD和PHD,并进行了一系列更新:(replace function):
update tbl set name = replace(name, M.D. , MD )
update tbl set name = replace(name, MD. , MD )
update tbl set name = replace(name, M.D , MD )
update tbl set name = replace(name, M.D , MD )
update tbl set name = replace(name, MD , MD ) -- fix case, hope no name starts with "MD"
update tbl set name = replace(name, PHD , PhD ) -- fix case
update tbl set name = replace(name, PH.D , PhD ) -- fix case
update tbl set name = replace(name, PH-D , PhD ) -- fix case
etc for any other variants you can think of or encounter
街道地址也存在多种问题,如言词之间的多个空间,而不是1个。
在消除分界线之后,将两个空间替换为一、二次。 为了更快地破坏一系列空间,我们使用8-和11;1 两度,然后是4-和;1,然后是2-和;1
update tbl set address = replace(address,
, )
update tbl set address = replace(address,
, )
update tbl set address = replace(address, , )
update tbl set address = replace(address, , )
update tbl set address = replace(address, , )
update tbl set address = replace(address, , )
update tbl set address = replace(address, , )
update tbl set address = replace(address, , )