How to use alphanumeric fields with BETWEEN clause in Mysql?

前端 未结 3 868
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-26 10:44

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

3条回答
  •  难免孤独
    2021-01-26 11:06

    You can use string expressions with BETWEEN comparison.

    SELECT '42SWC2278215551' BETWEEN '42SWC227821555' AND '42SWd227821555'
    -> 1
    

提交回复
热议问题