其实就只有一条sql语句
1
2
3
|
<select id = "search" resultType = "material" > select material_id,material_num,material_name,material_type,material_model,id from material where material_name like '%${value}%' or material_num like '%${value}%' </select> |
没加算法之类的
以上所述是小编给大家介绍的MyBatis中的模糊查询语句,希望对大家有所帮助,如果大家有任何疑问欢迎给我留言,小编会及时回复大家的!