MySQL SUBSTRING Function

Example

Extract a substring from a string (start at position 1, extract 3 characters):

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

Definition and Usage

The SUBSTRING() function extracts a substring from a string (starting at any position). Continue reading MySQL SUBSTRING Function