筆記52 Mybatis快速入門(三)

一、更多查詢 1.模糊查詢 修改Category.xml,提供listCategoryByName查詢語句select * from category where name like concat('%',#{0},'%')。concat('%',#{0},'%') 這是mysql的寫法,如果是oracle,寫法是select * from category_ where name like '%
相關文章
相關標籤/搜索