As shown in figure, bankdocname field before good without norms, and construction bank have write "China construction bank, construction bank,,,, China construction bank," and now need to be unified change "China construction bank co., LTD." This rule is built "* *", built with and done, no matter what's between the front and, direct replacement for "China construction bank co., LTD." to go Know regexp_replace function yesterday, I try to write regexp_replace (bankdocname, line built '* *', 'China construction bank co., LTD.), to Ask ace
CodePudding user response:
Regexp_replace (bankdocname, '^. *. * line $',' China construction bank co., LTD.) Or directly use the where + like '% % build line'