ibatis中if多條件查詢以及sql中不等於,等於的用法

一、if多條件知足寫法用and拼接sql <if test="searchText != null and searchText != ''"> ide 二、sql中不等於寫法,用<![CDATA[xx <> 3 ]]>這種寫法spa 例如字段xx不等於3:and  <![CDATA[xx <> 3 ]]>xml 三、當MyBatis 判斷條件爲等於的時候,常量須要加 .toString() 來轉
相關文章
相關標籤/搜索