1
我正在與一個項目iBatis 2.3。我想知道是否可以在同一個標籤中進行多重值比較。iBatis IsEqual比較一個標籤中的多個值
例如:
<isEqual property="test" compareValue="A OR B">
....mySQL...
</isEqual>
<isEqual property="test" compareValue="A AND B">
....mySQL...
</isEqual>
我目前使用的OR
條件語句列表:
<isEqual property="test" compareValue="A">
....mySQL...
</isEqual>
<isEqual property="test" compareValue="B">
....mySQL...
</isEqual>
和嵌套的標籤獲得AND
條件, 但可讀性低,不十分清楚兩個標籤之間的聯繫是否屬於同一個條件。
謝謝
可惜不是我所需要的。用我可以製作SQL條件。我試圖在ibastis標籤中添加條件。謝謝你的答案eatherway –
axelzaro
所以不可能你想要的。 – Pau