摘要:
转 sql中exists,not exists的用法 exists : 强调的是是否返回结果集,不要求知道返回什么, 比如: select name from student where sex = 'm' and mark exists(select 1 from grade where ...) 阅读全文
摘要:
1 What is that? 代理:本来应该自己做的事情,却请了别人来做,被请的人就是代理对象。 动态代理: 在程序运行过程中产生的这个对象 而程序运行过程中产生对象其实就是反射讲解的内容, 所以,动态代理其实就是通过反射来生成一个代理对象 2 How to do ? 在Java中java.lan 阅读全文
摘要:
1 public static int getIntervalDays(Date date, Date otherDate) { 2 long time = Math.abs(new LocalDate(date).toDate().getTime() - new LocalDate(otherDate).toDate().getTime()); 3 return (int) t... 阅读全文
摘要:
1 public static List getWorkDates(int year, int month) { 2 List dates = new ArrayList(); 3 Calendar cal = Calendar.getInstance(); 4 cal.set(Calendar.YEAR, year); 5 ... 阅读全文