關於mybatis中sql常見問題處理

一、關於mybatis中判斷條件中參數字符串處理 錯誤寫法:if test="status == 'Y'" 結果:拋異常NumberFormatException異常!提示內容很是少,看不出問題在哪裏! 正確寫法:if test='status == "y"' 還能夠這樣寫:if test="status == 'y'.toString()"sql 二、like語句中通配符的使用:百分號、下劃線和
相關文章
相關標籤/搜索