34,838
社区成员




Class.forName("org.sqlite.JDBC");
c = DriverManager.getConnection("jdbc:sqlite:/Users/00/DB1993.db");
c.setAutoCommit(false);
System.out.println("Opened database successfully");
stmt=c.createStatement();
stmt.executeUpdate("UPDATE TONGCHENGINDEX SET ID=NUL"); //ID是旧的自增列,NUL是新增的自增列
c.commit();
rs.close();
stmt.close();
c.close();