Index Direction
All indexes in Firebird are uni-directional.An index may be constructed from the lowest value to the highest (ascending order) or from the highest value to the lowest (descending order).The keywords ASC[ENDING]
and DESC[ENDING]
are used to specify the direction of the index.The default index order is ASC[ENDING]
.It is valid to define both an ascending and a descending index on the same column or key set.
Tip
|
A descending index can be useful on a column that will be subjected to searches on the high values (“newest”, maximum, etc.) |