Appearance
MyBatis动态sql可以在Xml映射文件内,以标签的形式编写动态sql,执行原理是根据表达式的值 完成逻辑判断 并动态拼接sql的功能。
MyBatis提供了9种动态sql标签:trim | where | set | foreach | if | choose | when | otherwise | bind。
trim
where
set
foreach
if
choose
when
otherwise
bind