摘要: 我使用的时候collection值为mapper的参数名如:int deleteRoleByUserIds(@Param("userIds") String[] userIds); <delete id="deleteRoleByUserIds"> delete from uc_user_role 阅读全文
posted @ 2017-08-23 15:55 人艰不拆_zmc 阅读(567) 评论(0) 推荐(0) 编辑
摘要: 用法说明:IFNULL(expr1,expr2) 如果 expr1 不是 NULL,IFNULL() 返回 expr1,否则它返回 expr2。 IFNULL()返回一个数字或字符串值,取决于它被使用的上下文环境。 我们先举一些例子: mysql> SELECT IFNULL(1,0); + + | 阅读全文
posted @ 2017-08-23 11:16 人艰不拆_zmc 阅读(436) 评论(0) 推荐(0) 编辑