Oracle错误:ORA-00905:ALTER TABLE上缺少关键字

时间:2013-06-15 10:37:02

标签: sql oracle syntax alter-table ora-00905

我收到错误ORA-00905: Missing keyword行:

ALTER TABLE Z_Paper_ObjTable ADD SCOPE FOR (institute) IN Z_Institute_ObjTable;

Z_Paper_ObjTable有一个属性institute REF Z_Institute_ObjType

有人可以帮我吗?

1 个答案:

答案 0 :(得分:2)

根据alter table文档,正确的语法是:

ALTER TABLE Z_Paper_ObjTable ADD (SCOPE FOR (institute) IS Z_Institute_ObjTable);

Parens不是可选的,is而不是in