Oracle RTRIM Function


/ Published in: SQL
Save to your folder(s)

A few examples of the Oracle RTRIM function.


Copy this code and paste it in your HTML
  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;

URL: http://www.databasestar.com/oracle-rtrim/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.