Updated on 2022-07-29 GMT+08:00

Index

Reverse Scans

Reverse Scans

DB2 Syntax

Syntax After Migration

CREATE INDEX IDX_1 ON EMP  
   (ID ASC) ALLOW REVERSE SCANS; 
 CREATE INDEX IDX_1 ON EMP  
   (ID ASC) DISALLOW REVERSE SCANS;
CREATE INDEX IDX_1 ON EMP  
   (ID ASC) /*ALLOW REVERSE SCANS*/; 
 CREATE INDEX IDX_1 ON EMP  
   (ID ASC) /*DISALLOW REVERSE SCANS*/;

Schema

index's schema is different from its table's schema.

DB2 Syntax

Syntax After Migration

CREATE INDEX IDXSC.IDX_1 ON EMP (ID ASC);
CREATE INDEX IDX_1 ON EMP (ID ASC);