oracle字符串替换方法!急!
在函数里A是4683,968,969,我想把A替换成4683$968$969,用什么方法?多谢!
------解决方案--------------------你写错了,你写了双引号了,应该是select replace( '4683,968,969 ', ', ', '$ ')
------解决方案--------------------SQL> select replace( '4683,968,969 ', ', ', '$ ') from dual;
REPLACE( '4683,968,969 ', ', ', '$ '
------------------------------
4683$968$969
SQL> select to_number( '520 ') from dual;
TO_NUMBER( '520 ')
----------------
520