Created
September 17, 2011 01:46
-
-
Save todesking/1223518 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
/* 自分で定義したDateRange型から、where条件を生成したい */ | |
-- before | |
select * from table | |
where | |
update_time between /*range.getStart()*/'2011-01-01' and /*range.getEnd()*/'2011-12-31' | |
-- after | |
select * from table | |
where | |
/*=QueyUtil.between("update_time",range)*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment