想实现的功能如下
update jfsky.product set support=Regexp_replace(support,')SINGLE',') SINGLE') 
where instr(Support,')SINGLE')>0
提示括号不匹配,把')SINGLE'改成'')SINGLE',提示未正常结束,改成
update jfsky.product set support=Regexp_replace(support,''')SINGLE',''') SINGLE') 
where instr(Support,''')SINGLE')>0
语句可以执行但不起作用,只是运行了,没有修改数据
期盼大侠出现

解决方案 »

  1.   

    不知道你要实现什么功能,你看下面是不是你需要的:update jfsky.product set support = Regexp_replace(support,'(SINGLE\d+,SINGLE\d+)' where instr(support,'(SINGLE\d+)'>0;
      

  2.   

    在你的括号的前面加个'\'就行了SQL> select Regexp_replace(')SINGLE1111','\)SINGLE','SINGLE')  from dual;REGEXP_REPLACE(')SINGLE1111','
    ------------------------------
    SINGLE1111SQL>