摘要:
时间天数差 private int diffInDays(Date star, Date endDay) { Date nextDay = star; int diffInDays = 1; while(nextDay.before(endDay)){//当明天不在结束时间之前是终止循环 Calen 阅读全文
摘要:
1, 对查询进行优化,应尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引。 2,应尽量避免在 where 子句中对字段进行 null 值判断,创建表时NULL是默认值,但大多数时候应该使用NOT NULL,或者使用一个特殊的值,如0,-1作为默 认值。 3,应尽量 阅读全文