Skip to content

Instantly share code, notes, and snippets.

@ksakae1216
Last active July 10, 2017 13:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ksakae1216/c3abbc6e7bb14ad3c6e77d3f6d7c9a51 to your computer and use it in GitHub Desktop.
Save ksakae1216/c3abbc6e7bb14ad3c6e77d3f6d7c9a51 to your computer and use it in GitHub Desktop.
SELECT
VAL1
,VAL2
FROM
TEST_TABLE
WHERE
COL1 = 'hogehoge'
<if test="val != '' and val != 'A' and val != 'B'">
AND
COL2 = #{val}
</if>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment