REPLACE ( char, search_string [, replace_string]) 如果没有指定replace_string 变量的值,那么当发现search_string 变量的值时,就将其删除
 
1.替换
update EMAIL set MAILSUBJECT =replace(MAILSUBJECT,'UAT',REMARKS||' UAT') where docID='0000002955' and PARTINDEX!=0;
 
2.不设置第三个参数,等于删除
--23被删除
select replace('abcdefg','abc') from dual;
result:
Oracle Replace函数的简单使用

 

 

相关文章:

  • 2021-06-11
  • 2021-08-23
  • 2022-12-23
  • 2021-05-29
  • 2021-10-24
  • 2022-03-10
  • 2021-10-30
  • 2022-12-23
猜你喜欢
  • 2021-07-22
  • 2021-09-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-05
相关资源
相似解决方案