By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,610 Members | 1,697 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,610 IT Pros & Developers. It's quick & easy.

That works faster in DB2 for creation of an index?

P: n/a
HELLO all

That works faster in DB2 for creation of an index:
CREATE INDEX
or
Alter Table tab ADD INDEX
for Import?

Thanks.

Aug 23 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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
Aug 23 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.