SUBSTRING():
This function takes a string along with position and length as arguments and returns the extracted portion of the string as output.
Syntax:
SUBSTRING(string, start_position, length)
Example:
SELECT SUBSTRING('Database', 1, 4) AS Result;
Output:
Data
