Pi*************@gmail.com wrote:
That works faster in DB2 for creation of an index:
CREATE INDEX
or
Alter Table tab ADD INDEX
for Import?
The first one works, the second doesn't because it is already syntactically
incorrect.
You can add constraints to a table and unique constraints (primary keys are
just unique constraints) use a unique index under the covers for their
implementation. Aside from that, you have the CREATE INDEX statement to
create indexes.
--
Knut Stolze
DB2 z/OS Utilities Development
IBM Germany