MyBatis的动态SQL
摘要:1.使用动态SQL完成多条件查询 if:利用if实现简单的条件查询 choose(when,otherwise):相当于Java中的switch语句,通常与when和otherwise搭配 where:简化SQL语句中where的条件判断 set:解决动态更新语句 trim:可以灵活的去除多余的关键
阅读全文
posted @ 2018-06-19 15:16
posted @ 2018-06-19 15:16
posted @ 2018-06-19 14:47
posted @ 2018-06-19 12:15