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

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -