0
点赞
收藏
分享

微信扫一扫

mybatis 模糊查询

我阿霆哥 2022-06-28 阅读 51
1. Java代码执行的时候传递通配符%%


List<User> userList=mapper.getUserLike("%李%");




2. 在sql拼接中使用通配符!


select * from mybatis.user where name like "%"#{value}"%"

 


举报

相关推荐

0 条评论