摘要:
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 阅读全文
摘要:
有时候,要对数据库批量更新,假如写一个条件更新一次,那代码看起来重复了,这时候可以采用批量操作 1 在配置连接数据库url后面带一个参数 &allowMultiQueries=true,表示允许批量操作,例 jdbc:mysql://localhost:3306/mysqlTest?characte 阅读全文