Mybatis-plus中mapper.xml文件 模糊查询写法

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},'%')

你可能感兴趣的:(java)