Skip to content

Instantly share code, notes, and snippets.

@ksakae1216
Created July 10, 2017 13:34
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/ae82147000e88112c65f78b662b76e38 to your computer and use it in GitHub Desktop.
Save ksakae1216/ae82147000e88112c65f78b662b76e38 to your computer and use it in GitHub Desktop.
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