Subject Re: [firebird-support] Descending primary key in FB 2.0
Author Dmitry Yemanov
Rick Debay wrote:
> ALTER TABLE SXC_CLAIM ADD CONSTRAINT PK_SXC_CLAIM PRIMARY KEY
> (RXCLAIMNBR, CLMSEQNBR DESC, CLAIMSTS);

The index key can be either ascending or descending *entirely* (not ASC
for some key segments and DESC for another ones).

> I had thought FB 2.0 added support
> for descending primary keys

It was in v1.5, IIRC.

ALTER TABLE <table name>
ADD CONSTRAINT <constraint name>
PRIMARY KEY (<columns>)
USING DESCENDING INDEX <index name>;


Dmitry