`

mybatis模糊查询

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

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

分享到:
评论
1 楼 aa00aa00 2014-10-28  
你确认这样可以吗?

相关推荐

Global site tag (gtag.js) - Google Analytics