0

"GROUP" is used as a column name wity 'CHAR' type.

I have to increase the column length, but I get this following error message.

ALTER TABLE "DB2.FAQA_GROUP" specified attributes for column "GROUP" that are not compatible with the existing column.

ALTER TABLE <Table-name>
ALTER COLUMN group
SET DATA TYPE char(10)
4

1 回答 1

0

GROUP是一个保留关键字,这就是您收到语法错误的原因。但是,如果您使用转义列名,您仍然可以更改列" "

ALTER TABLE <Table-name>
ALTER COLUMN "group"
SET DATA TYPE char(10)
于 2013-05-08T17:33:01.953 回答