This tutorial explains how to use the MySQL LEFT function with syntax and examples.
The MySQL LEFT function allows you to extract a substring from a string, starting from the left-most character.
The syntax for the LEFT function in MySQL is:
The string that you wish to extract from.
The number of characters that you wish to extract from string starting from the left-most character.
The LEFT function can be used in the following versions of MySQL:
Let's look at some MySQL LEFT function examples and explore how to use the LEFT function in MySQL.
For example: