Check out example codes for "Sql select by content lenght". It will help you in understanding the concepts better.

Code Example 1

$query = ("SELECT * FROM $db WHERE conditions AND LENGTH(col_name) = 3");

Learn ReactJs, React Native from akashmittal.com