Oracle翻译函数
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Oracle翻译函数相关的知识,希望对你有一定的参考价值。
A few examples of the TRANSLATE function.
--Example 1 SELECT 'Complete IT Professional' AS SAMPLE_TEXT, TRANSLATE('Complete IT Professional', 'o', 'X') AS TRANSLATE_TEST FROM dual; --Example 2 SELECT 'Complete IT Professional' AS SAMPLE_TEXT, TRANSLATE('Complete IT Professional', 'Is', 'SW') AS TRANSLATE_TEST FROM dual; --Example 3 SELECT 'Complete IT Professional' AS SAMPLE_TEXT, TRANSLATE('Complete IT Professional', 'IsC m', 'SWx2q') AS TRANSLATE_TEST FROM dual; --Example 4 SELECT 'Complete IT Professional' AS SAMPLE_TEXT, TRANSLATE('Complete IT Professional', 'omsi', '12') AS TRANSLATE_TEST FROM dual; --Example 5 SELECT 'Complete IT Professional' AS SAMPLE_TEXT, TRANSLATE('Complete IT Professional', 'omsi', '') AS TRANSLATE_TEST FROM dual; --Example 6 SELECT 'Complete IT Professional' AS SAMPLE_TEXT, TRANSLATE('Complete IT Professional', 'x', 'a') AS TRANSLATE_TEST FROM dual; --Example 7 SELECT 'Complete IT Professional' AS SAMPLE_TEXT, REPLACE('Complete IT Professional', 'let', 'sip') AS REPLACE_TEST, TRANSLATE('Complete IT Professional', 'let', 'sip') AS TRANSLATE_TEST FROM dual;
以上是关于Oracle翻译函数的主要内容,如果未能解决你的问题,请参考以下文章