摘要:
1 Math.floor(1.4)=1.0 2 Math.round(1.4)=1 3 Math.ceil(1.4)=2.0 4 Math.floor(1.5)=1.0 5 Math.round(1.5)=2 6 Math.ceil(1.5)=2.0 7 Math.floor(1.6)=1.0 8 阅读全文
posted @ 2019-04-23 14:22
远启
阅读(13794)
评论(0)
推荐(1)
摘要:
此篇适合有一定的mybatis使用经验的人阅读. 一.批量更新 为了提升操作数据的效率,第一想到的是做批量操作,直接上批量更新代码: 生成的sql语句 二.批量添加 批量添加在做大量数据插入到mysql时,效率相对单条遍历插入大大提高; 但是数据是基于数据库层面做的约束的话,在插入的数据中有一个数据 阅读全文
posted @ 2019-04-23 10:06
远启
阅读(11662)
评论(0)
推荐(1)