- 博客(1)
- 收藏
- 关注
原创 mysql 模糊查询 like concat()
concat() 函数:用来连接字符串。精确查询: select * from user where name="?"模糊查询; select * from user where name like “%?%”在实际使用的时候,经常like的内容是作为参数从前台页面传递过来的,所以需要用到CONCAT连接:select * from user where name like concat("%", #{name},"%")concat(str1,str2,str3,str4,…); 连接字符串函
2020-12-18 15:08:32 3578
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人