是否可以为这样的字符串编写过滤器:10xx8xx0xx
,其中 x - 任何符号,但“非 x”的顺序及其在字符串中的位置很重要?
谢谢!
最佳答案
select ... where field like '10__8__0__'
SQL Like:% 代表任意数量的字符,_ 代表一个字符。
关于mysql - SQL:如何为这样的字符串编写过滤器 - '10xx8xx0xx'(x - 任何符号)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8644010/