SQL> set null '<NULL>'select
str, srch, trans, translate(str, srch, trans)
from (
select'abccba' str, 'ab' srch, '変換' trans from dualunion all
select'abccba', 'abc', '文字' from dualunion all
select'abc', 'ab', '文字単位' from dualunion all
select null, null, '△' from dualunion all
select'三〇四五円', '一二三四五六七八九〇円', '1234567890' from dualunion all
select'あいうえお', 'あいうえお', 'アイウエオ' from dualunion all
select'ぱぴぷぺぽ', 'ぱぴぷぺぽ', 'パピプペポ゚' from dualunion all
select'パピプペポ', 'パピプペポ', 'ぱぴぷぺぽ' from dualunion all
select decompose('ぱぴぷぺぽ'), decompose('ぱぴぷぺぽ'), 'ぱぴぷぺぽ' from dual
);
STR SRCH TRANS TRANSLATE(STR,SRCH,TRANS)
------------ ------------------------ ------------ -------------------------
abccba ab 変換 変換cc換変
abccba abc 文字 文字字文
abc ab 文字単位 文字c
<NULL> <NULL> △ <NULL
三〇四五円 一二三四五六七八九〇円 1234567890 3045
あいうえお あいうえお アイウエオ アイウエオ
ぱぴぷぺぽ ぱぴぷぺぽ パピプペポ゚ パピプペポ
パピプペポ パピプペポ ぱぴぷぺぽ ぱぴぷぴぽぴぴぴ
ぱぴぷぺぽ ぱぴぷぺぽ ぱぴぷぺぽ ぱぴぷぴぽぴぴぴ