Mysql Left Function
Mysql Left Function is used to return the leftmost string character from the string.
Understand with Example
The Tutorial will help you to learn an example from 'Mysql Left Function'.To understand this example,we simply create a table name'employee1'.The table 'employee1' is created with the required fieldname and datatype respectively.
Query to Create Table named employee1:
Query to insert data into Table named employee1:
Now the insert into add the records or rows to the table 'employee1'.
Query to view data of Table named employee1:
To view the records from table 'employee1' we use select query that displays the table details.
Query to view data of Table named employee1 using Left:
The Query below left keyword returns the leftmost characters in the string as fieldname LeftString.The ' 6 ' would be the length of the left string characters.