I need help please.
I have a DB2 table that has a index. That index has 3 columns. One of thoses columns is numeric and I need to transform it to character.
Current index:
ColumnA CHAR(3 )
ColumnB DECIMAL (2 , 0 ) ------------------> I need to change it
ColumnC CHAR (2 )
ColumnB DECIMAL (2 , 0 ) ------------------> I need to change it
ColumnC CHAR (2 )
New index:
ColumnA CHAR(3 )
ColumnB CHAR (2 ) ------------------> New format
ColumnC CHAR (2 )
ColumnB CHAR (2 ) ------------------> New format
ColumnC CHAR (2 )
The documentation I have says to avoid to changing numeric ---> character because that causes many problems, but it doesn't say which ones....
Instead, it says to add 1 new colum at the end of the table but, that is not possible because the ColumnB is part of the key of the table.
Could anyone tell me what should I do ?
Thanks in advance!