现有一个表DOCUMENT ,我想将其中一个列COUNT 里的内容中包含 aaa这三个字符,替换成bbb
------解决方案--------------------------------------------------------
update "DB2"."TEST_TABLE" set TEST_COLUMNS = replace(TEST_COLUMNS,'aaa','bbb')
where TEST_COLUMNS like '%'||'aaa'||'%';
'12aaaa3aaa4aaa56aaaaa'--------------->'12bbba3bbb4bbb56bbbaa'碰到连续的aaaa就会替换成bbba
just try
thx