In DB2, what happens when you create an index on a table?

  • Indexes are removed from the table
  • The data is rearranged physically
  • The index is created based on the specified columns
  • The table structure changes
When an index is created on a table in DB2, it is based on the specified columns provided during the index creation process. This index allows DB2 to quickly locate rows based on the indexed columns, enhancing query performance. The table structure remains unchanged, but an additional data structure (the index) is created to facilitate faster data retrieval. 
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *