Simple demo for SUBSTR function : SUBSTR « Char Functions « Oracle PL / SQL






Simple demo for SUBSTR function

 

SQL>
SQL> 
SQL> SELECT SUBSTR('My address is 123 Fourth St.',1,12) FROM dual;

SUBSTR('MYAD
------------
My address i

SQL>
           
         
  








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.SUBSTR: from the right-hand side of original string
5.SUBSTR and INSTR are used together
6.select substr( '1234567890', 5 )
7.Use SUBSTR to decode a column
8.use substr in IF statement
9.substr(date value,8)+16