Simple demo for TRIM function: removes all specified characters either from the beginning or the ending of a string : TRIM « Char Functions « Oracle PL / SQL
Simple demo for TRIM function: removes all specified characters either from the beginning or the ending of a string
SQL>
SQL> --For example, the following query removes the character "S" from a string:
SQL>
SQL> SELECT TRIM('S' FROM 'STEVENS') AS TRIM FROM Dual;
TRIM
-----
TEVEN
SQL>