MySQL SUBSTR Function

Example

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

SELECT SUBSTR("SQL Tutorial", 5, 3) AS ExtractString;

Definition and Usage

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