The substring() Function

This function has two signatures:

substring('abcd', 1) returns the string 'bcd'.

substring('abcd', 4) returns an empty string.

substring('abcd', 1, 3) returns the string 'bc'.