Composite index creation in DB2 -
i used create composite index
oracle
table following script.
create index index_name on my_table (column1,column2,column3) tablespace tablespace_name;
when tried same in db2
, got errors @ tablespace
, tried using following script simply,
create index index_name on my_table (column1,column2,column3);
is fine in db2
? new db2
, no syntax found when searched composite index in db2
, not sure this. need advice.
for create index documentation, can check infocenter: http://pic.dhe.ibm.com/infocenter/db2luw/v10r5/topic/com.ibm.db2.luw.sql.ref.doc/doc/r0000919.html
the db2 create index sentence provided correct. remember in db2, not provide tablespace @ index creation. tablespace indexes specified when create table
create table xx ( ... ) in ts_table index in ts_indexes
for more information create table, please take @ this: http://pic.dhe.ibm.com/infocenter/db2luw/v10r5/topic/com.ibm.db2.luw.sql.ref.doc/doc/r0000927.html
Comments
Post a Comment