--
You received this message because you are subscribed to the Google Groups "H2 Database" group.
To view this discussion on the web visit https://groups.google.com/d/msg/h2-database/-/4YIJwRCXW74J.
To post to this group, send email to h2-da...@googlegroups.com.
To unsubscribe from this group, send email to h2-database...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/h2-database?hl=en.
Thanks, but i would like to do it into my programm, i mean in java code.
all this is because I want to update database to this new version and I don't know how to do it..
I suppose I can do it by using linked tables or merging them, but I don't know the entire process.
Yes. I did this way, but I though it could have a new way because db is thousands of rows end is slow importing row by. I' ve though I could use "create table as select..." And after drop table...or use linked tables.
--
You received this message because you are subscribed to the Google Groups "H2 Database" group.
To post to this group, send email to h2-da...@googlegroups.com.
To unsubscribe from this group, send email to h2-database+unsubscribe@googlegroups.com.
Well. In fact , I would like to know if I could do the next things:
Thansks for your great reply. I did this code so far. Could you have a look into it , and tell me if I'm doing something wrong?. I tell you so because for importing 4000 movies, my program needs 6 minutes, and I think is a lot...
Class.forName("org.h2.Driver");Connection conn = DriverManager.getConnection("jdbc:h2:"+ FilenameUtils.concat(GlobalSettings.TEMP_DIR, "Portable")+ ";LOG=0;CACHE_SIZE=65536;LOCK_MODE=0;UNDO_LOG=0"+ ";IFEXISTS=TRUE", "sa", "");DatabaseFactory.connection.setAutoCommit(false);String sqlCount = "SELECT * FROM Movies";Statement statement = conn.createStatement();ResultSet result = statement.executeQuery(sqlCount);result.next();while (result.next()) {OldMovie085 om = null;Movie movie = null;om = new OldMovie085(conn, result);movie = new Movie();movie.setKey(om.getKey());movie.setTitle(om.getTitle());movie.setOriginalTitle(om.getOriginalTitle());movie.setCategory(om.getCategory());movie.setDirector(om.getDirector());