【发布时间】:2023-03-06 01:44:01
【问题描述】:
我正在尝试更改 derby db 列的数据类型。当前价格列设置为 DECIMAL(5,0)。我想将其更改为 DECIMAL(7,2)。我这样做了:
alter table item alter column price set data type DECIMAL(7,2);
但它不起作用,并显示错误:
Error: Only columns of type VARCHAR may have their length altered.
我可以知道如何改变它吗?谢谢。
【问题讨论】: