I am using DB2 in my project. I have a table which has following DDL:
CREATE TABLE TEST (
ID INTEGERT NOT NULL,
ACCESS_INFO VARCHAR (2048) NOT NULL,
NAME VARCHAR (2048))
When trying to create index for the column "ACCESS_INFO", am getting following error:
The index or index extension "xxxx" cannot be created or altered because the combined length of the specified columns is too long..
I referred [1] which explains to add large tablespace for creating indexes for long column. But this for new tables. What is the proper way to add it for an existing table?
[1] https://dba.stackexchange.com/questions/19894/create-index-for-long-columns