「MYSQL」- 函数 | 操作符 | Functions and Operators

String

SUBSTRING

MySQL SUBSTRING() Function

SELECT SUBSTRING(“SQL Tutorial”, 1, 3) AS ExtractString;

Note: The position of the first character in the string is 1.
Note: The position of the last character in the string is -1.