文档解释 ORA-01463: cannot modify column datatype with current constraint(s) Cause: An attempt was made to modify the dataty
ORA-01463: cannot modify column datatype with current constraint(s)
Cause: An attempt was made to modify the datatype of column which has referential constraints; or has check constraints which only allows changing the datatype from CHAR to VARCHAR or vise versa.
Action: Remove the constraint(s) or do not perfORM the offending operation.
ORA-01463:当前约束(s)无法修改列数据类型。
该错误消息表明尝试修改表中字段的数据类型,但表中存在约束条件,导致此操作无法完成。要修改列的数据类型,必须先删除约束条件。
oracle官方文档定义如下:
ORA-01463:无法使用当前约束(S)修改列数据类型。
发生此错误的常见情况是,某个字段由于唯一性约束而不能修改其数据类型。将删除仅改变列的约束,然后尝试重新修改字段的数据类型。
1.使用sql查找具有任何约束的列,如:
SELECT * FROM user_constraints WHERE table_name =
--结束END--
本文标题: ORA-01463: cannot modify column datatype with current constraint(s) ORACLE 报错 故障修复 远程处理
本文链接: https://www.lsjlt.com/news/529812.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0