文档解释
ORA-31403: change table string already contains a column string
Cause: Issued ALTER_CHANGE_TABLE with an add operation but a column by this name already exists in the specified table.
Action: Check the names and call the procedure again.
ORA-31403:change table string已经包含了一个column string
官方解释
ORA-31403 异常会在将更新表指定给change table时发生,其中该更新表已经包含列,它们与指定给change table的旧表结构不同。
常见案例
你可能会在使用Oracle ALTER TABLE change table语句时遇到这个错误。 例如:
ALTER TABLE table_name CHANGE COLUMN col1 col2 VARCHAR2 (50)
一般处理方法及步骤
为解决这个错误,您需要将旧列从更新表中删除。 FLASHBACK DROP语法可以从旧表中删除旧列。 一旦您从更新表中删除了旧列,再次尝试ALTER TABLE change table语句就可以通过了。
香港美国云服务器首选树叶云,2H2G首月10元开通。
树叶云(shuyeidc.com)提供简单好用,价格厚道的香港/美国云服务器和独立服务器。IDC+ISP+ICP资质。ARIN和APNIC会员。成熟技术团队15年行业经验。
文章来源网络,作者:运维,如若转载,请注明出处:https://shuyeidc.com/wp/237917.html<

