Check out example codes for "mysql get longest string in column". It will help you in understanding the concepts better.

Code Example 1

ORDER BY LENGTH(description) DESC LIMIT 1

Learn ReactJs, React Native from akashmittal.com