ORA-31498: description and remove_description cannot both be specified ORACLE 报错 故障修复 远程处理

文档解释 ORA-31498: description and remove_description cannot bo…

文档解释

ORA-31498: description and remove_description cannot both be specified

Cause: The description and remove_description parameters were both specified.

Action: Check the values of description and remove_description. Correct call to only supply one of these values.

ORA-31498:指定描述和 remove_description 无效!

该错误指当用户尝试同时使用描述语句和移除描述语句时会出现该错误。

相关描述:

错误代码:ORA-31498

错误信息:description and remove_description cannot both be specified

官方解释

这个错误表面上有点混乱,因为它强调的是描述和移除描述的同时出现,而不是它们之间的某种冲突。

一般情况下,当ALTER TABLE语句同时包含有添加注释(description)语句和移除注释(remove_description)语句时就会出现该错误,例如:

ALTER TABLE table_name

ADD description ‘Some description’

REMOVE description

一般处理方法及步骤

1. 确保你只使用一个描述选项,而不是同时使用描述和移除描述。

2. 如果要更新现有注释,请使用“MODIFY”选项,而不是“ADD”或“REMOVE”选项:

ALTER TABLE table_name

MODIFY description ‘Some new description’

香港美国云服务器首选港服(Server.HK),2H2G首月10元开通。
港服(Server.HK)(www.IDC.Net)提供简单好用,价格厚道的香港/美国云服务器和独立服务器。IDC+ISP+ICP资质。ARIN和APNIC会员。成熟技术团队15年行业经验。

为您推荐

港服(Server.HK)MongoDB教程:MongoDB 索引

MongoDB 索引 索引通常能够极大的提高查询的效率,如果没有索引,MongoDB在读取数据时必须扫描集合中的每个文件...

港服(Server.HK)PostgreSQL教程PostgreSQL 别名

PostgreSQL 别名 我们可以用 SQL 重命名一张表或者一个字段的名称,这个名称就叫着该表或该字段的别名。 创建...

港服(Server.HK)Memcached教程:Memcached stats 命令

Memcached stats 命令 Memcached stats 命令用于返回统计信息例如 PID(进程号)、版本号...

港服(Server.HK)Redis教程:Redis 数据类型

Redis 数据类型 Redis支持五种数据类型:string(字符串),hash(哈希),list(列表),set(集...

港服(Server.HK)Redis教程:Redis GEO

Redis GEO Redis GEO 主要用于存储地理位置信息,并对存储的信息进行操作,该功能在 Redis 3.2 ...
返回顶部