风的旅行

2018年11月23日

MySQL函数转储存(当前月数据同步)

摘要: 1 BEGIN 2 declare a1 int default 0;#第一次循环的循环变量 3 declare a2 int default 0; 4 declare b1 int default 0; 5 declare b2 int default 0; 6 declare c1 int default 0; 7 ... 阅读全文

posted @ 2018-11-23 18:01 风的旅行 阅读(288) 评论(0) 推荐(0) 编辑

map和list循环遍历

摘要: 1 //map遍历(zmm是实体类) 2 3 Map maps = new HashMap(); 4 5 //给map存值; 6 7 maps.put(username, zmm); 8 9 //把maps集合循环遍历 10 for (String key : maps.keySet()) { 11 12 //用key值取出value; 13 14 String ... 阅读全文

posted @ 2018-11-23 17:31 风的旅行 阅读(2564) 评论(0) 推荐(1) 编辑

向数据库批量处理事件

摘要: 1 Connection conn; 2 Class.forName("com.mysql.jdbc.Driver"); 3 conn = DriverManager.getConnection( 4 "jdbc:mysql://88.88.88.88:3306/zmm?useUnicode=true&characterEncoding=UTF-8", "root", "root");... 阅读全文

posted @ 2018-11-23 17:15 风的旅行 阅读(178) 评论(0) 推荐(0) 编辑

导航