replace和translate的用法

select replace ('111222333444','222','888') from dual;
with tmp as(
select 'aabb/123\:cde工人' s from dual union all
select 'c*o"中国人刀k<j>aa|' from dual)
select s,translate(s,'$/\:*?"<>|','$')from tmp;

posted @ 2016-12-21 11:11  学无止境,前进  阅读(232)  评论(0编辑  收藏  举报