mybatis中的<where>和<set>

在mybatis中编写动态SQL语句时

当写多条件查询语句时<where>可以消除前置and

 

当写更新语句时<set>可以消除后置,

 

posted @ 2019-03-07 20:52  olzoooo  阅读(4727)  评论(0编辑  收藏  举报