aspose file tools*
The moose likes JDBC and the fly likes ALTER query in H2 In-memory database. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "ALTER query in H2 In-memory database." Watch "ALTER query in H2 In-memory database." New topic
Author

ALTER query in H2 In-memory database.

Shubhendu K Paul
Greenhorn

Joined: Aug 10, 2012
Posts: 3
As per my understanding if a table has data and user performed ALTER TABLE query for adding column, it’s internally not only adding column whereas it also iterates each rows and fill either default value or null. If I am correct then more data in a table will take more time to perform ALTER TABLE query.

I would like to understand the internal process, how database handles ALTER TABLE query for adding column when that table already has data.
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30764
    
156

That is correct. Larger tables have more work. What do you want to know more about specifically?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
 
subject: ALTER query in H2 In-memory database.