This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes JDBC and Relational Databases 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 Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
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: 32508
    
214

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


[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
 
Have you checked out Aspose?
 
subject: ALTER query in H2 In-memory database.
 
It's not a secret anymore!