This tutorial explains how to use the MySQL MID function with syntax and examples.
The MySQL MID function allows you to extract a substring from a string.
The syntax for the MID function in MySQL is:
The source string used to extract from.
The position to begin extraction. The first position in the string is always 1.
The number of characters to extract.
The MID function can be used in the following versions of MySQL:
Let's look at some MySQL MID function examples and explore how to use the MID function in MySQL.
For example: