笔记52 Mybatis快速入门(三)

一、更多查询 1.模糊查询 修改Category.xml,提供listCategoryByName查询语句select * from category where name like concat('%',#{0},'%')。concat('%',#{0},'%') 这是mysql的写法,如果是oracle,写法是select * from category_ where name like '%
相关文章
相关标签/搜索