• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ALTER query in H2 In-memory database.

 
Shubhendu K Paul
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 34669
367
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That is correct. Larger tables have more work. What do you want to know more about specifically?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic