Oracle RTRIM函数

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Oracle RTRIM函数相关的知识,希望对你有一定的参考价值。

A few examples of the Oracle RTRIM function.
  1. SELECT RTRIM('Complete IT Professional ') AS RTRIM_EXAMPLE FROM DUAL;
  2.  
  3. SELECT RTRIM('Complete IT Professional___', '_') AS RTRIM_EXAMPLE FROM DUAL;
  4.  
  5. SELECT RTRIM('Complete IT Professional; ; ; ; ; ', ' ; ') AS RTRIM_EXAMPLE FROM DUAL;
  6.  
  7. SELECT country, RTRIM(country, 'A') AS RTRIM_EXAMPLE FROM customers;
  8.  
  9. SELECT full_address, RTRIM(full_address, 'et') AS RTRIM_EXAMPLE FROM customers;
  10.  
  11. SELECT RTRIM('Complete IT Professional00', 0) AS RTRIM_EXAMPLE FROM DUAL;
  12.  
  13. SELECT LTRIM(RTRIM('___Complete IT Professional__', '_'), '_') AS RTRIM_EXAMPLE FROM DUAL;
  14.  
  15. SELECT RTRIM('Complete IT Professionalé', 'é') AS RTRIM_EXAMPLE FROM DUAL;

以上是关于Oracle RTRIM函数的主要内容,如果未能解决你的问题,请参考以下文章

oracle中trim,ltrim,rtrim函数用法

oracle函数 RTRIM(c1,[,c2])

Oracle:trim,ltrim,rtrim

mysql 强大的trim() 函数

Oracle 内置函数

Oracle 函数大全