choose when otherwise 標籤

在mybatis中可以使用when otherwise來達到if else 的效果 當when裏面的條件成立,就按條件來查詢,條件都不成立就按otherwise來查詢 舉例條件都不成立: sql語句變爲:select * from product_ where id > 2 查詢結果:
相關文章
相關標籤/搜索