ibatis dynamic SQL using for How to implement between two date by IBATIS dynamic Sql -
i a complex dynamic select statement in ibatis this
select * emp //when dateparam between 2012-03-1 , 2013-03-01 union select * emp1 //when dateparam between 2014-03-1 , 2015-03-01 union select * emp2
i this:
select * emp <islessequal property="dateparam" comparevalue="2015-03-01"> union select * emp1 </islessequal> <islessequal property="dateparam" comparevalue="2013-03-01"> union select * emp1 </islessequal>
Comments
Post a Comment