In MariaDB, SUBSTRING()
is a built-in string function that returns a substring from a given string.
SUBSTRING()
requires at least two arguments; the string, and the position for which to extract the substring from. It also accepts an optional third argument that allows you to specify how long the substring should be.