Mybatis-plus中mapper.xml文件 模糊查询写法
日期: 2019-01-23 分类: 跨站数据 363次阅读
Mybatis-plus中mapper.xml中模糊查询写法
select * from t_user_info a where a.telephone like concat('%',#{phoneMumber},'%')
匹配手机号码前4位为"1368"的手机号码
select * from t_user_info a where a.telephone like concat('1368','%')
匹配手机号码前几位为phoneMumber的手机号码
select * from t_user_info a where a.telephone like concat(#{phoneMumber},'%')
除特别声明,本站所有文章均为原创,如需转载请以超级链接形式注明出处:SmartCat's Blog
精华推荐