Oracle SQL - Function RTRIM function

Introduction

RTRIM function removes a set of characters from the right of a string.

RTRIM stands for "right trim."

The general format for this function is:

RTRIM(string, characters_to_remove) 

Demo

SQL>
SQL>--   ww w  . ja v a  2s  .c om
SQL> SELECT RTRIM('Tests', 's') FROM dual;

RTRI
----
Test

SQL>