能用正则表达式实现字符串换位吗

John, Smith 变成 Smith John

 

Solution:

SQL> select regexp_replace('John, Smith','^([^,*]{1,}),([^,*]{1,})','\2 \1') from dual;
REGEXP_REPLACE('JOHN,SMITH','^
------------------------------
Smith John

相关文章:

  • 2022-12-23
  • 2021-11-15
  • 2021-07-11
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-03
  • 2021-07-10
  • 2022-12-23
  • 2022-12-23
  • 2021-11-21
相关资源
相似解决方案