mybatis模糊查询

网上关于mybatis模糊查询的很多人不知道,好像也没人说,所以我就把我关于mybatis模糊查询的用法写出来供有需要的人参考一下,希望对有需要的人能有所帮助!

<select id="selectByName" parameterType="String" resultType="Student">
   select * from Student s where s.name like "%"#{name}"%";
</select>

你可能感兴趣的:(mybatis)