Firebird Question:
Download Job Interview Questions and Answers PDF
How to recreate the index on a Firebird table?
Answer:
Recreating the index:
ALTER INDEX indexName INACTIVE;
ALTER INDEX indexName ACTIVE;
Please note that it does not work for indices automatically created by the system like the ones for primary key or foreign key. You might want to drop and recreate the constraints in such case.
To recalculate the index statistics (which is enough for most cases), use:
SET STATISTICS INDEX indexName;
ALTER INDEX indexName INACTIVE;
ALTER INDEX indexName ACTIVE;
Please note that it does not work for indices automatically created by the system like the ones for primary key or foreign key. You might want to drop and recreate the constraints in such case.
To recalculate the index statistics (which is enough for most cases), use:
SET STATISTICS INDEX indexName;
Download Firebird Interview Questions And Answers
PDF
Previous Question | Next Question |
How to pump the data from one database to another? | How to reorder the table columns (fields)? |