Mybatis動態SQL學習

數據庫設計 1.if where語句 這樣的話若是title是空 語句爲select * from mybatis.blog where and author=#{author} 加上where標籤即可解決 "這個「where」標籤會知道如果它包含的標籤中有返回值的話,它就插入一個‘where’。此外,如果標籤返回的內容是以AND 或OR 開頭的,則它會剔除掉。" 2.set語句 記得加逗號 3.
相關文章
相關標籤/搜索