SUBSTR and INSTR are used together : SUBSTR « Char Functions « Oracle PL / SQL






SUBSTR and INSTR are used together

 

SQL>
SQL> -- SUBSTR and INSTR are used together
SQL>
SQL> SELECT SUBSTR('aaa, bb ccc', INSTR('aaa, bb ccc',', ')+2) FROM dual;

SUBSTR
------
bb ccc

           
         
  








Related examples in the same category

1.SUBSTR() returns a portion of string, beginning at numeric_position up to a specified substring_length characters long.
2.Substr: retrieve a portion of the string
3.SUBSTR: get the sub-string
4.Simple demo for SUBSTR function
5.SUBSTR: from the right-hand side of original string
6.select substr( '1234567890', 5 )
7.Use SUBSTR to decode a column
8.use substr in IF statement
9.substr(date value,8)+16