How to recreate the index on a Firebird table?
Submitted by: AdministratorRecreating 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;
Submitted by: Administrator
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;
Submitted by: Administrator
Read Online Firebird Job Interview Questions And Answers
Top Firebird Questions
☺ | How to detect the server version? |
☺ | How to write UDF s in Delphi? |
☺ | How do convert or display the date or time as string? |
☺ | How to drop all foreign keys in database? |
☺ | Is there some bulk load or other way to import a lot of data fast? |
Top Databases Programming Categories
☺ | RDBMS Interview Questions. |
☺ | SQL Interview Questions. |
☺ | SSRS Interview Questions. |
☺ | Database Administrator (DBA) Interview Questions. |
☺ | Sybase Interview Questions. |