The MID() function is used to extract characters from a text field.
We have the following "Persons" table:
Now we want to extract the first four characters of the "City" column above.
We use the following SELECT statement:
The result-set will look like this:
Your Query was successfully sent!