Skip to content

Instantly share code, notes, and snippets.

@ksakae1216 ksakae1216/sql2
Created Jul 10, 2017

Embed
What would you like to do?
SELECT
VAL1
,VAL2
FROM
TEST_TABLE
WHERE
COL1 = 'hogehoge'
<if test="val != '' and val != 'A'.toString() and val != 'B'.toString()">
AND
COL2 = #{val}
</if>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.