select name from users where phone like '152%' or phone like '153%' or phone like '154%' or phone like '155%' or phone like '156%'
上面的语句,如何能写得更简单点? 比如设一个范围(151%-154%)这样的。
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
不用LIKE,用REGEXP