doc-exports/docs/dws/tool/dws_07_6843.html
Lu, Huayi 346ac31da9 DWS TG 8.1.3.200 VERSION
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Reviewed-by: Jiang, Beibei <beibei.jiang@t-systems.com>
Co-authored-by: Lu, Huayi <luhuayi@huawei.com>
Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
2023-08-28 09:20:17 +00:00

4.7 KiB

Index Migration (DB2)

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);