摘要: String webPath11 =commonPath+File.separator+ name+"_"+i+ ".xlsx"; File file = new File(webPath11); // // 必须按创建本地目录 // if (!file.getParentFile().exists 阅读全文
posted @ 2023-08-03 17:35 甜菜波波 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 一个非常简单的代码片段如下: String[] list = {"a", "b", "c"}; List<CompletableFuture<String>> completableFutureList = new ArrayList<>(); for (String s : list) { com 阅读全文
posted @ 2023-08-03 14:14 甜菜波波 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 一、mysql中不同位置增加字段 增加字段(在特定的字段后增加) alter table 表名 add 需要修改/增加的信息 afer 字段名(在哪个字段后增加) alter table dept Add column name varchar(20) not null default 0 AFTE 阅读全文
posted @ 2023-08-03 13:54 甜菜波波 阅读(2075) 评论(0) 推荐(0) 编辑
摘要: 前置知识 在 MySQL 中,GROUP BY 关键字可以根据一个或多个字段对查询结果进行分组 在有 GROUP BY 操作中,SELECT 后面接的结果集字段只有两种:要么就只有 GROUP BY 后出现的字段,要么就是 GROUP BY 后出现的字段+聚合函数的组合 常用的五种聚合函数:MIN( 阅读全文
posted @ 2023-08-03 13:40 甜菜波波 阅读(969) 评论(0) 推荐(0) 编辑
摘要: sql执行顺序:from on join where group by having select distinct union order by 别名的使用: SELECT download_type as type,count(*) from download GROUP BY type 正常来 阅读全文
posted @ 2023-08-03 13:35 甜菜波波 阅读(26) 评论(0) 推荐(0) 编辑