摘要: SELECT * FROM user WHERE username LIKE concat('%',#{username},'%') concat : 类似+ ,拼接sql.sql语句中会将+ 重写.不能用+进行拼接 注意: 两个字段的模糊查询 阅读全文