模糊查询 like 语句该怎么写

答案解析

在 SQL 中用 like,参数用 #{param},传参时拼接 %,如 where name like concat('%', #{name}, '%')。