Search notes:

Oracle SQL function: SUBSTR

substr has to mandatory and one optional parameter:
substr( text , position )
substr( text , position , length )

Two parameters

With two parameters, substr returns the portion of text from character position through the end of text.
select
   substr(
      '1234567890', -- Text
       5            -- Start position
   )
from
   dual;
--
-- 567890
Github repository Oracle-Patterns, path: /SQL/functions/text/substr/two-parameters.sql

Three parameters

The optional third parameter is used to limit the length of the returned string:
select
   substr(
      '1234567890', -- Text
       5          , -- Start position
       3            -- Length
   )
from
   dual;
--
-- 567
Github repository Oracle-Patterns, path: /SQL/functions/text/substr/three-parameters.sql

Variants

substr comes in five variants:

See also

regexp_substr is the regular expression version of substr.
dbms_lob.substr
Functions related to text and strings
The SQL Server's function substring.

Index