摘要: DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss"); long now = System.currentTimeMillis(); long n = new Long("1347008341011"); Calendar calendar = Calendar.getInstance(); calendar.setTimeInMillis(n); System.out.println(now + " = " + formatter.format... 阅读全文
posted @ 2012-09-28 16:57 双面煎蛋 阅读(2715) 评论(0) 推荐(0) 编辑
摘要: 转载地址:http://database.51cto.com/art/201010/230148.htm在Mysql数据库中,Mysql Merge表有点类似于视图。下面就让我们来一起了解一下Mysql Merge表都有哪些优点,希望对您能有所帮助。Mysql Merge表的优点:A: 分离静态的和动态的数据B:利用结构接近的的数据来优化查询C: 查询时可以访问更少的数据D:更容易维护大数据集E: 可以通过修改.mrg文件来修改Merge表,当然也可以用alter进行修改,修改后要通过FLUSH TABLES刷新表缓存,此法可以动态增加减少子表创建方法,例:mysql>CREATE TA 阅读全文
posted @ 2012-09-28 11:33 双面煎蛋 阅读(386) 评论(0) 推荐(0) 编辑