【发布时间】:2019-11-07 00:12:53
【问题描述】:
我在我的项目中使用 DB2。我有一个包含以下 DDL 的表:
CREATE TABLE TEST (
ID INTEGERT NOT NULL,
ACCESS_INFO VARCHAR (2048) NOT NULL,
NAME VARCHAR (2048))
尝试为“ACCESS_INFO”列创建索引时,出现以下错误:
The index or index extension "xxxx" cannot be created or altered because the combined length of the specified columns is too long..
我提到了 [1],它解释了为长列创建索引添加大表空间。但这适用于新表。为现有表添加它的正确方法是什么?
[1]https://dba.stackexchange.com/questions/19894/create-index-for-long-columns
【问题讨论】:
-
什么是 Db2-server 操作系统(z/OS、i 系列、Linux/Unix/Windows)?
-
@mao,操作系统是Linux
标签: database db2 alter-table tablespace