is a very powerful feature of MyBatis. It enables programmers to build queries based on write the query using the
statement. Following are the OGNL based
expressions provided by MyBatis otherwise
• trim where, set
• foreach
## The if Statement
The most common thing to do in
is conditionally include a part of a where clause. For example –