模糊查询(like函数)

 

 

 

--Mapper文件中
select * from user where name  LIKE CONCAT('%',CONCAT(#{firstName}, '%'))

select * from user where name like '%万里哥%'

 

posted @ 2021-03-12 11:29  万里哥  阅读(589)  评论(0)    收藏  举报