I have a table that contain a field names as mgrs, the value that stored in mgrs fields is like \'42SWC227821555\' may contain more charachters, and may contain lower case lette
Instead of BETWEEN
clause use STRCMP(expr1, expr2) function for string comparison operations:
WHERE STRCMP(mgrs, '42SWC227821555') >= 0 AND STRCMP(mgrs, '42SWC227821570') <= 0
You can use string expressions with BETWEEN comparison.
SELECT '42SWC2278215551' BETWEEN '42SWC227821555' AND '42SWd227821555'
-> 1
I will list some steps, instead of complete answer.