摘要: public class FileCopy { public static void main(String[] args) throws Exception { File f1 = new File("D:\\test\\demo.doc"); String path = "D:\\test\\"; System.out.print("请输入要复制的文件个数:"); Scanner sc = n 阅读全文
posted @ 2019-09-17 17:50 踏月而来 阅读(435) 评论(0) 推荐(0) 编辑
摘要: 有时候,要对数据库批量更新,假如写一个条件更新一次,那代码看起来重复了,这时候可以采用批量操作 1 在配置连接数据库url后面带一个参数 &allowMultiQueries=true,表示允许批量操作,例 jdbc:mysql://localhost:3306/mysqlTest?characte 阅读全文
posted @ 2019-09-17 12:03 踏月而来 阅读(236) 评论(0) 推荐(0) 编辑