简体   繁体   中英

Oracle error : ORA-00905: Missing keyword on ALTER TABLE

I'm getting the error ORA-00905: Missing keyword with line:

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

Table Z_Paper_ObjTable has an attribute institute REF Z_Institute_ObjType .

Can anyone help me please?

According to the alter table docs, the correct syntax would be:

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

Parens not optional, and is rather than in .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM