需求: 如何将多条update语句合并为一条update语句:如,update table1 set col='2012' where id='2014001' update table1 set col='1009' where id='2014003'如何合并为一条? 在网上找了好久,总结了一个相对简单的语句(有些语句是函数语句,有点晕),如下: update table1 set col=(case id when '2014001' then '2012' when '2
mybatis example 排序 语句 IntegralInfoExample integral = new IntegralInfoExample(); integral.createCriteria().andUserIdEqualTo(userId); integral.setOrderByClause("id desc"); https://blog.csdn.net/andzuo/article/details/72912023