create a unique index
In DB2 UDB, I can create an index using the following syntax
create unique index I_0004 on TABLENAME (a) INCLUDE (b, c, d);
where a, b, c and d are the fields in the table TABLENAME .
In DB2 for os390, this syntax ( INCLUDE keyword) is not valid, so I create indexes as follows
create unique index I_0004 on TABLENAME (a); create index I_0005 on TABLENAME (a, b, c, d);
Are the two statements above equivalent to a solution with the INCLUDE keyword?
index column order
And, if I slightly changed the first statement
create index I_0005 on TABLENAME (a, b, c, d) ALLOW REVERSE SCANS;
is the ALLOW REVERSE SCANS equivalent of creating indexes
create index I_0005 on TABLENAME (a, b, c, d); create index I_0005 on TABLENAME (d, c, b, a);
or does he also consider any combination of these columns (I mean, a, b, c, d; b, c, d, a; c, d, a, b, etc.)?