Subject | Re: [firebird-support] Question about ALTER INDEX |
---|---|
Author | Martijn Tonies |
Post date | 2005-12-31T15:38:43Z |
Hello Christian,
constraint indices, which cannot be de-activated.
think a WHERE is supported. You could give it a try and report
back to us :-)
Martijn Tonies
Database Workbench - tool for InterBase, Firebird, MySQL, Oracle & MS SQL
Server
Upscene Productions
http://www.upscene.com
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com
> I have some questions about indexes in FB 1.5.2:Check the flag in RDB$INDICES.
>
> - How can I check with an SQL statement if an index is active or inactive?
> - If I call ALTER INDEX name ACTIVE, will the index be rebuilt in anyAlways. This is a neat trick to re-calculate, for example, primary key
> case or only if it was inactive before?
constraint indices, which cannot be de-activated.
> - Is there a way to have a filtered index? This means only records thatNo, although Firebird 2 does support expression indices, I don't
> meet a certain condition will be in the index?
think a WHERE is supported. You could give it a try and report
back to us :-)
> - Is there a way to "freeze" the index ? I mean that the index with aNo.
> current state is available for select statements, but new inserts are
> done without altering the index.
Martijn Tonies
Database Workbench - tool for InterBase, Firebird, MySQL, Oracle & MS SQL
Server
Upscene Productions
http://www.upscene.com
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com