Created
November 10, 2014 05:55
-
-
Save nakamura-to/4c8f94d82216bb401f1d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select email from table_a | |
where | |
primaryDomain = /*domain*/'hoge.com' | |
union | |
select email from table_b | |
where | |
/*%if userIds.size() > 0 */ | |
member_id in /*userIds*/('aaa', 'bbb') | |
/*%else */ | |
and | |
1 <> 1 | |
/*%end */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment