hujh20 发表于 2016-11-24 06:28:37

mybatis模糊查询

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

<select id="selectByName" parameterType="String" resultType="Student">
   select * from Student s where s.name like "%"#{name}"%";
</select>
页: [1]
查看完整版本: mybatis模糊查询